X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by lists.alpinelinux.org (Postfix) with ESMTP id 44C315C04EB for ; Thu, 1 Nov 2018 10:31:00 +0000 (GMT) Received: by mail-lf1-f42.google.com with SMTP id p17so7372846lfh.4 for ; Thu, 01 Nov 2018 03:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DFjNgzWETob57YSUl7lsaz6h1xIIfZJrStIT7udMzUg=; b=AONWW+q8msUmEaIlUXZ+cWXEeLnwuULNeEo3oPcXh3AugeV8vm2t0ckq5klkgLRdZM 0sYbm9BklGl2dEmuCIY81VKgsoVd1SuLFp9nTATX4xBEwXK9wz3e+FOPSFYZBWLIX15w EDN5g3uf7dFHni9KCsGtiYxjN4GYUlfxIpyqu/e8XS7UxCKAfV6nk1MygKa/WhGBANRr o3x4GzyuDwxP1de3wQCMpdak5KUKMepFbB6Tc0+ySsdi18EZPZ8FiDdDT0IQkzVuMs1d i0nJIKb9Gl8fZLlo7s3ebFpaLU0spj5iGEykRGfADa+hEbmxkmu6zlj44D1RLmnpUZqK Bojw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DFjNgzWETob57YSUl7lsaz6h1xIIfZJrStIT7udMzUg=; b=dr5WM32ZlJa+PLR5a3jlYbfhAuYhcja0uraf4+K3Epuj/7STfKCLTlRZbH/hrsFaL9 53utelprQ0yEIAKLKthx+AKIn9xLDzbQlJFwNJ8irn2fWFt8XcQxdzHp1T4JUpFhDzLz b8nE812T/V4bOmBwGqABrQiuP1EHXzzKwkPzmwW6FjPgTV4yBGxk5Q5XXwnMsrw++seb f55/1iLwlymcp6YsLLDoWmb2hY0axsjs1orWBgJ59MWirKaDh786EYFEFdm7MWuROFVV jZnAq6buL+5KUeQF47LCy3jJWoy6mE6QMlpxYSEj+RnkoEJrcUjxg6rm0Rjz5z18yUNL 8wOw== X-Gm-Message-State: AGRZ1gI8oCRQRfleHLM7RkgkD/jFMIUbEUPT5hm0R18nqUED/tnrbygw noyutlC+twcwXGeFXGvjz4n1bVNxpuyFBhZtqx8Ckg== X-Google-Smtp-Source: AJdET5cqDiJF2jW7O29HuD5RcmGnp8/pzuj4PQ2aP+6+FEbmdni6xR2bDUsjhXLFf5dHogu0Jy/QzYMNFnabZ/HoVtk= X-Received: by 2002:a19:4d8d:: with SMTP id a135mr4353142lfb.80.1541068259365; Thu, 01 Nov 2018 03:30:59 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: In-Reply-To: From: Ivan Shibkikh Date: Thu, 1 Nov 2018 13:31:10 +0300 Message-ID: Subject: Re: [alpine-user] "set -xe" command in Dockerfile To: d@duniel.no Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000002c99c2057997ea17" --0000000000002c99c2057997ea17 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cool, many many thanks! =D1=87=D1=82, 1 =D0=BD=D0=BE=D1=8F=D0=B1. 2018 =D0=B3. =D0=B2 12:55, Daniel= Isaksen : > 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 tra= ce for > each command after it expands the command and before it executes it. It i= s > unspecified whether the command that turns tracing off is > traced. > > > =E2=88=92e When this option is on, when any command fails (for = any of > the reasons listed in Section 2.8.1, Consequences of Shell Errors or b= y > 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 >> > > --0000000000002c99c2057997ea17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cool, many many thanks!

=D1=87=D1=82, 1 =D0=BD=D0=BE=D1=8F=D0=B1. 2018 =D0= =B3. =D0=B2 12:55, Daniel Isaksen <d@duni= el.no>:
Basically makes the shell write trace= s for expanded commands before they're executed, and for the shell to e= xit on non-zero exit statuses:

=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 com= mand after it expands the command and before it executes it. It is
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0unspecified whether the c= ommand that turns tracing off is traced.


=
=C2=A0 =C2=A0 =C2=A0 =C2=A0=E2=88=92e=C2=A0 =C2=A0 When this opt= ion is on, when any command fails (for any of the reasons 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 great= er than zero), the shell immediately shall exit with the following exceptio= ns: (...)
-----
Sin= cerely / 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 with= out success. I found this email on main Alpine web site. Can someone explai= n what does it mean "set -xe" command in Dockerfile? Context is:<= /span>

= RUN set -xe && apk add ...

Thanks,
Ivan

--0000000000002c99c2057997ea17-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---