Created
April 27, 2021 22:45
-
-
Save joshchernoff/b3d1e82642a383135335a3ece2f12ae6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cluster_example main % docker compose build --no-cache | |
[+] Building 267.2s (30/43) | |
=> [cluster_example_app2 internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 32B 0.0s | |
=> [cluster_example_app1 internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 32B 0.0s | |
=> [cluster_example_app2 internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [cluster_example_app1 internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [cluster_example_app1 internal] load metadata for docker.io/library/alpine:3.9 1.0s | |
=> [cluster_example_app1 internal] load metadata for docker.io/library/elixir:1.11.4-alpine 1.0s | |
=> CACHED [cluster_example_app2 app 1/5] FROM docker.io/library/alpine:3.9@sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011 0.0s | |
=> [cluster_example_app2 internal] load build context 4.5s | |
=> => transferring context: 1.05MB 4.4s | |
=> CACHED [cluster_example_app1 build 1/16] FROM docker.io/library/elixir:1.11.4-alpine@sha256:0eadfd7c108f05a28fc724f30e180f72c081ad0550900a634b19ee99b873c598 0.0s | |
=> [cluster_example_app1 internal] load build context 4.8s | |
=> => transferring context: 1.05MB 4.5s | |
=> [cluster_example_app2 build 2/16] RUN apk add --no-cache build-base npm git python2 16.0s | |
=> [cluster_example_app1 app 2/5] RUN apk add --no-cache openssl ncurses-libs 5.8s | |
=> [cluster_example_app1 app 3/5] WORKDIR /app 0.1s | |
=> [cluster_example_app2 app 4/5] RUN chown nobody:nobody /app 0.9s | |
=> [cluster_example_app2 build 3/16] WORKDIR /app 0.1s | |
=> [cluster_example_app1 build 4/16] RUN mix local.hex --force && mix local.rebar --force 4.6s | |
=> [cluster_example_app2 build 5/16] COPY mix.exs mix.lock ./ 0.1s | |
=> [cluster_example_app2 build 6/16] COPY config config 0.0s | |
=> [cluster_example_app2 build 7/16] RUN mix do deps.get, deps.compile 187.2s | |
=> [cluster_example_app2 build 8/16] COPY assets/package.json assets/package-lock.json ./assets/ 0.1s | |
=> [cluster_example_app2 build 9/16] RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error 26.0s | |
=> [cluster_example_app2 build 10/16] COPY priv priv 0.1s | |
=> [cluster_example_app2 build 11/16] COPY assets assets 3.1s | |
=> [cluster_example_app2 build 12/16] RUN npm run --prefix ./assets deploy 16.4s | |
=> [cluster_example_app2 build 13/16] RUN mix phx.digest 2.0s | |
=> [cluster_example_app2 build 14/16] COPY lib lib 0.1s | |
=> [cluster_example_app2 build 15/16] COPY rel rel 0.1s | |
=> [cluster_example_app2 build 16/16] RUN mix do compile, release 8.3s | |
=> [cluster_example_app2 app 5/5] COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/cluster_example ./ 0.4s | |
=> [cluster_example_app2] exporting to image 1.0s | |
=> => exporting layers 0.9s | |
=> => writing image sha256:7ef120aa1d769facc5957aeba8774d4e0f51782e7b1da60c0a5b6b08421abad1 0.0s | |
=> => naming to docker.io/library/cluster_example_app1 0.0s | |
=> => naming to docker.io/library/cluster_example_app2 0.0s | |
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them | |
cluster_example main % git status | |
On branch main | |
nothing to commit, working tree clean | |
cluster_example main % docker compose up | |
[+] Running 1/0 | |
⠿ Container cluster_example_dev_db Running 0.0s | |
Attaching to app1_1, app2_1, cluster_example_dev_db | |
The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli | |
Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "bin/cluster_example": stat bin/cluster_example: no such file or directory: unknown | |
cluster_example main % docker compose run app1 sh | |
[+] Running 1/0 | |
⠿ Container cluster_example_dev_db Running 0.0s | |
/app $ ls -la | |
total 2156 | |
drwxr-xr-x 21 nobody nobody 672 Apr 27 21:06 . | |
drwxr-xr-x 1 root root 4096 Apr 27 22:43 .. | |
-rw------- 1 nobody nobody 310 Apr 27 22:43 .ash_history | |
-rw-r--r-- 1 nobody nobody 159 Apr 27 00:42 .formatter.exs | |
drwxr-xr-x 11 nobody nobody 352 Apr 27 22:43 .git | |
-rw-r--r-- 1 nobody nobody 907 Apr 27 20:12 .gitignore | |
-rw-r--r-- 1 nobody nobody 1168 Apr 27 21:53 Dockerfile | |
-rw-r--r-- 1 nobody nobody 744 Apr 27 00:42 README.md | |
drwxr-xr-x 4 nobody nobody 128 Apr 27 18:06 _build | |
drwxr-xr-x 2 nobody nobody 64 Apr 27 17:38 app.exs | |
drwxr-xr-x 11 nobody nobody 352 Apr 27 00:43 assets | |
drwxr-xr-x 7 nobody nobody 224 Apr 27 17:37 config | |
drwxr-xr-x 31 nobody nobody 992 Apr 27 00:42 deps | |
-rw-r--r-- 1 nobody nobody 1186 Apr 27 22:13 docker-compose.yml | |
-rw-r----- 1 nobody nobody 2149083 Apr 27 21:40 erl_crash.dump | |
drwxr-xr-x 6 nobody nobody 192 Apr 27 00:42 lib | |
-rw-r--r-- 1 nobody nobody 1933 Apr 27 00:42 mix.exs | |
-rw-r--r-- 1 nobody nobody 9891 Apr 27 00:42 mix.lock | |
drwxr-xr-x 6 nobody nobody 192 Apr 27 20:38 priv | |
drwxr-xr-x 5 nobody nobody 160 Apr 27 19:31 rel | |
drwxr-xr-x 5 nobody nobody 160 Apr 27 00:42 test | |
/app $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment