mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Remove horribly outdated docker image (#3221)
We don't even have the `da` tool anymore referenced in there.
This commit is contained in:
parent
8026297b96
commit
9b71bf03ea
@ -1,43 +0,0 @@
|
|||||||
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
FROM ubuntu:16.04
|
|
||||||
|
|
||||||
ENV USER daml
|
|
||||||
|
|
||||||
RUN set -eux;\
|
|
||||||
apt-get update; \
|
|
||||||
apt-get install --yes sudo bsdmainutils ca-certificates netbase wget openjdk-8-jdk; \
|
|
||||||
useradd -m -s /bin/bash -G sudo $USER; \
|
|
||||||
echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers ; \
|
|
||||||
# `da start` calls `xdg-open`, which does not make much sense in a container.
|
|
||||||
ln -s /bin/true /usr/local/bin/xdg-open
|
|
||||||
|
|
||||||
ENV DA_CLI_VERSION 112-b616cb073d
|
|
||||||
ENV DA_CLI da-cli-$DA_CLI_VERSION-linux.run
|
|
||||||
|
|
||||||
USER $USER
|
|
||||||
WORKDIR /home/$USER
|
|
||||||
|
|
||||||
RUN set -eux; \
|
|
||||||
wget https://digitalassetsdk.bintray.com/DigitalAssetSDK/com/digitalasset/da-cli/$DA_CLI_VERSION/$DA_CLI; \
|
|
||||||
sh $DA_CLI; \
|
|
||||||
rm $DA_CLI; \
|
|
||||||
sudo ln -s $HOME/.da/bin/da /usr/local/bin/da; \
|
|
||||||
da setup
|
|
||||||
|
|
||||||
ENV MAIN daml/Main.daml
|
|
||||||
RUN set -eux; \
|
|
||||||
da new quickstart-java quickstart; \
|
|
||||||
cd quickstart; \
|
|
||||||
da run damlc -- test $MAIN
|
|
||||||
|
|
||||||
ENV START start.sh
|
|
||||||
COPY $START $START
|
|
||||||
RUN set -eux; \
|
|
||||||
sudo chown $USER:$USER $START; \
|
|
||||||
chmod u+x $START
|
|
||||||
|
|
||||||
EXPOSE 7500
|
|
||||||
EXPOSE 6865
|
|
||||||
|
|
||||||
CMD ./$START
|
|
@ -1,23 +0,0 @@
|
|||||||
# DAML quickstart-java in a docker container
|
|
||||||
|
|
||||||
To build this docker image, run
|
|
||||||
```
|
|
||||||
docker build --tag=quickstart .
|
|
||||||
```
|
|
||||||
This will download and install the newest version of the DAML SDK and set up
|
|
||||||
the `quickstart-java` project.
|
|
||||||
|
|
||||||
To execute the resulting image, run
|
|
||||||
```
|
|
||||||
docker run --interactive --tty --rm quickstart
|
|
||||||
```
|
|
||||||
This will run `da start` in the `quickstart-java` project. Point your browser
|
|
||||||
to http://localhost:7500 to use Navigator. Press `Ctrl-C` to stop the
|
|
||||||
execution.
|
|
||||||
|
|
||||||
To experiment with the `quickstart-java` project, run
|
|
||||||
```
|
|
||||||
docker run --interactive --tty --rm quickstart /bin/bash --login
|
|
||||||
```
|
|
||||||
This will drop you in a shell in the container. The project is located in the
|
|
||||||
`quickstart` directory.
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
cd $HOME/quickstart
|
|
||||||
da start &
|
|
||||||
sleep 15
|
|
||||||
echo "Press Ctrl-C to quit this."
|
|
||||||
sleep infinity
|
|
Loading…
Reference in New Issue
Block a user