~alpine/users

2 2

[alpine-user] "set -xe" command in Dockerfile

Ivan Shibkikh <ivan.shib@gmail.com>
Details
Message ID
<CAPpbOOxSQ-waw8nU0TbhLdARkhzFOG8UB2+O2Yaw0cRfmgBvig@mail.gmail.com>
Sender timestamp
1541065311
DKIM signature
missing
Download raw message
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
Daniel Isaksen <d@duniel.no>
Details
Message ID
<CAFWK1CAJD8X6gd9HTdHH_UOkoYio4SyOk6NSB=b5h6o9JLDjTQ@mail.gmail.com>
In-Reply-To
<CAPpbOOxSQ-waw8nU0TbhLdARkhzFOG8UB2+O2Yaw0cRfmgBvig@mail.gmail.com> (view parent)
Sender timestamp
1541066130
DKIM signature
missing
Download raw message
Basically makes the shell write traces for expanded commands before they're
executed, and for the shell to exit on non-zero exit statuses:

       −x    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.


       −e    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  by
             returning an exit status greater than zero), the shell
immediately shall exit with the following exceptions: *(...)*

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

On Thu, Nov 1, 2018 at 10:41 AM, Ivan Shibkikh <ivan.shib@gmail.com> 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
>
Ivan Shibkikh <ivan.shib@gmail.com>
Details
Message ID
<CAPpbOOyyi_tTuY6TBpGnqdZ78VD0yEL+a0rzeW5mnUyGPDLUuQ@mail.gmail.com>
In-Reply-To
<CAFWK1CAJD8X6gd9HTdHH_UOkoYio4SyOk6NSB=b5h6o9JLDjTQ@mail.gmail.com> (view parent)
Sender timestamp
1541068270
DKIM signature
missing
Download raw message
Cool, many many thanks!

чт, 1 нояб. 2018 г. в 12:55, Daniel Isaksen <d@duniel.no>:

> Basically makes the shell write traces for expanded commands before
> they're executed, and for the shell to exit on non-zero exit statuses:
>
>        −x    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.
>
>
>        −e    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  by
>              returning an exit status greater than zero), the shell
> immediately shall exit with the following exceptions: *(...)*
>
> -----
> Sincerely / Med vennlig hilsen,
> Daniel Isaksen <d@duniel.no> (https://duniel.no)
>
> On Thu, Nov 1, 2018 at 10:41 AM, Ivan Shibkikh <ivan.shib@gmail.com>
> 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
>>
>
>
Reply to thread Export thread (mbox)