mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Add a daml
user to docker image and fix PATH (#3160)
Previously, we were installing the SDK as root which is probably not a good idea. This PR adds a new `daml` user and fixes PATH (`$HOME` and `~` both don’t work in this context).
This commit is contained in:
parent
e310cbe143
commit
25f33c2928
@ -1,5 +1,7 @@
|
||||
FROM openjdk:8u212-alpine
|
||||
RUN apk add curl bash
|
||||
ARG VERSION
|
||||
RUN addgroup -S daml && adduser -S daml -G daml
|
||||
USER daml
|
||||
RUN curl https://get.daml.com | sh -s $VERSION
|
||||
ENV PATH="~/.daml/bin:${PATH}"
|
||||
ENV PATH="/home/daml/.daml/bin:${PATH}"
|
||||
|
@ -24,3 +24,5 @@ HEAD — ongoing
|
||||
+ [Scala Codegen] Fixes for StackOverflowErrors in reading large LF archives. See `issue #3104 <https://github.com/digital-asset/daml/issues/3104>`_.
|
||||
+ [Scala Bindings] Fixed a bug in the retry logic of ``LedgerClientBinding#retryingConfirmedCommands``. Commands are now only retried when the server responds with status ``RESOURCE_EXHAUSTED`` or ``UNAVAILABLE``.
|
||||
|
||||
+ [DAML-SDK Docker Image] The image now contains a ``daml`` user and the SDK is installed to ``/home/daml/.daml``.
|
||||
``/home/daml/.daml/bin`` is automatically added to ``PATH``.
|
||||
|
Loading…
Reference in New Issue
Block a user