X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by lists.alpinelinux.org (Postfix) with ESMTP id 3EB975C659E for ; Thu, 1 Nov 2018 09:55:52 +0000 (GMT) Received: by mail-lj1-f180.google.com with SMTP id u6-v6so1172195ljd.1 for ; Thu, 01 Nov 2018 02:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duniel-no.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m824Huhoi+MhM8S8in60EgXtkm1JxSqe8mquuttaX6I=; b=TdE57yuLX5ufDqBuxqwsdgjHa7w8b1YEYhnosyGVl+pFzf12mPsTgJLP2cl9+r9Exl 8x6CSSHSlzRSxmPcDg/VX7qnZevpeH+j4HDYpL++T9kSGtJkHDVyJsMG1tzOuKmunyFo v+riGP/dWJwc8zvfAFMLH4RvaWVXLPmwX9lromekEMQNKdZYq4F72R5gLnG854RlL+fi vKrEIes0Gd+Z2lD2qbAEJaWKiftkWHnbudzjS11HrCw24eKj5I5UrCAYngB9yKiVbmC2 2d4hKRbS4JYzPz/qMH+T0sJBtHE7AxQqx7G27cxxdEp5FcuyPqdzAuO8qrcUZlzXeruH k/UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m824Huhoi+MhM8S8in60EgXtkm1JxSqe8mquuttaX6I=; b=QzTzoFsEzkOcuRTO+qBle86gKQXmJO+s3yvb6xs6CWJem5izgAb4TyYtDEDdmBod7k D3cl4LmDXBYoBlwpFvrDktYETior0U1fgMqk4MDxKyeZl7wE9HYwIDzyvymZhMe2Zb1k /8aqsjRgKN4AG824VYlrfNhyR1jUBL9H+B6EiacgSTqDG+ZSMqVevIiwE+ZdoG/6BHuT fjDMKilfo7UEyOy8qRmGowK5LlC8EAdFsjdi/5LDL9VM7REUlCnA1C6AGjo8z21Q+Kvx agQms51NzAZomnSsB5GQsvNNf5rbuu9GdIOHoDxPtXmPY4c7fg1k+waHZUfWyUpToa1+ zNKQ== X-Gm-Message-State: AGRZ1gJQ46z3aoNSr4MC791RnQ9u7dSkHRHivywZs0hBJkAux6SRtzSh bCmJq5//8ycjeBiWNRjBgne6RihotcJH2xFE4dbgAQ== X-Google-Smtp-Source: AJdET5dTLAIsmiXnKWUOIfxA/GSXz/HlHwxd7vdeCo2dGSI2Fq6ah9tQKxNDsq+MF21dJ2nsozfNEHzwSz7LmYrus4Q= X-Received: by 2002:a2e:824c:: with SMTP id j12-v6mr4327870ljh.168.1541066151260; Thu, 01 Nov 2018 02:55:51 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 2002:a05:6504:753:0:0:0:0 with HTTP; Thu, 1 Nov 2018 02:55:30 -0700 (PDT) In-Reply-To: References: From: Daniel Isaksen Date: Thu, 1 Nov 2018 10:55:30 +0100 Message-ID: Subject: Re: [alpine-user] "set -xe" command in Dockerfile To: Ivan Shibkikh Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000008589610579976c8c" --0000000000008589610579976c8c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Basically makes the shell write traces for expanded commands before they're executed, and for the shell to exit on non-zero exit statuses: =E2=88=92x The shell shall write to standard error a trace= for each command after it expands the command and before it executes it. It is unspecified whether the command that turns tracing off is traced. =E2=88=92e When this option is on, when any command fails (for an= y of the reasons listed in Section 2.8.1, Consequences of Shell Errors or by returning an exit status greater than zero), the shell immediately shall exit with the following exceptions: *(...)* ----- Sincerely / Med vennlig hilsen, Daniel Isaksen (https://duniel.no) On Thu, Nov 1, 2018 at 10:41 AM, Ivan Shibkikh wrote: > Hi All, > > I spent time to find answer but without success. I found this email on > main Alpine web site. Can someone explain what does it mean "set -xe" > command in Dockerfile? Context is: > > RUN set -xe && apk add ... > > Thanks, > Ivan > --0000000000008589610579976c8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Basically makes t= he shell write traces for expanded commands before they're executed, an= d for the shell to exit on non-zero exit statuses:

<= /span>
=C2=A0 =C2=A0 =C2=A0 =C2=A0=E2=88=92x=C2=A0 =C2=A0 The=C2= =A0 shell=C2=A0 shall=C2=A0 write=C2=A0 to=C2=A0 standard=C2=A0 error=C2=A0= a trace for each command after it expands the command and before it execut= es it. It is
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0unsp= ecified whether the command that turns tracing off is traced.

=C2=A0 =C2=A0 =C2=A0 =C2=A0=E2=88=92e=C2=A0= =C2=A0 When this option is on, when any command fails (for any of the reas= ons listed in Section 2.8.1, Consequences of Shell=C2=A0 Errors=C2=A0 or=C2= =A0 by
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0returning = an exit status greater than zero), the shell immediately shall exit with th= e following exceptions: (...)

-----
Since= rely / Med vennlig hilsen,
Daniel Isaksen <d@duniel.no> (https://duniel.no)

On Thu, Nov 1, 2018 at 10:41 AM, Ivan Shibki= kh <ivan.shib@gmail.com> wrote:
Hi All,

I spent time= to find answer but=20 without success. I found this email on main Alpine web site. Can someo= ne explain what does it mean "set -xe" command in Dockerfile? Con= text is:

RUN set -xe &am= p;& apk add ...

Thanks,
Ivan

--0000000000008589610579976c8c-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---