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:
Moritz Kiefer 2019-10-11 13:03:26 +02:00 committed by GitHub
parent e310cbe143
commit 25f33c2928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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}"

View File

@ -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``.