Skip to content

Instantly share code, notes, and snippets.

@jritsema
Created July 11, 2019 01:01
Show Gist options
  • Save jritsema/4379d2423cc2b31278e2aee5a1027068 to your computer and use it in GitHub Desktop.
Save jritsema/4379d2423cc2b31278e2aee5a1027068 to your computer and use it in GitHub Desktop.
$ docker build -t vscode .
Sending build context to Docker daemon 12.42MB
Step 1/18 : FROM node:10.15.1
10.15.1: Pulling from library/node
741437d97401: Pull complete
34d8874714d7: Pull complete
0a108aa26679: Pull complete
7f0334c36886: Pull complete
65c95cb8b3be: Pull complete
a36b708560f8: Pull complete
4090f912e6c7: Pull complete
ce5fe2607c2e: Pull complete
Digest: sha256:91d4f8b1d5094d413afdcae4af37e4361686019691c441c09a021864ddeb468e
Status: Downloaded newer image for node:10.15.1
---> 8fc2110c6978
Step 2/18 : RUN apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev
---> Running in 7f4716afa8e4
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:3 http://deb.debian.org/debian stretch-updates InRelease
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Ign:4 http://deb.debian.org/debian stretch Release
Get:5 http://deb.debian.org/debian stretch-updates Release [89.4 kB]
Ign:5 http://deb.debian.org/debian stretch-updates Release
Get:6 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Ign:6 http://security.debian.org/debian-security stretch/updates Release
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Get:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [499 kB]
Ign:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Get:10 http://deb.debian.org/debian stretch-updates/main all Packages [25.0 kB]
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Get:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.4 kB]
Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Get:12 http://security.debian.org/debian-security stretch/updates/main all Packages [213 kB]
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Get:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [623 kB]
Ign:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Get:12 http://security.debian.org/debian-security stretch/updates/main all Packages [262 kB]
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Get:7 http://deb.debian.org/debian stretch/main all Packages [4410 kB]
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [9475 kB]
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Get:10 http://deb.debian.org/debian stretch-updates/main all Packages [30.5 kB]
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Get:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages [33.3 kB]
Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Err:9 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Err:8 http://deb.debian.org/debian stretch/main amd64 Packages
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Reading package lists...
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev' returned a non-zero code: 100
~/code/code-server (master) $ ls -lah ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
-rw-r--r--@ 1 jritsema staff 61G Jul 10 15:02 /Users/jritsema/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
~/code/code-server (master) $ rm ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
~/code/code-server (master) $ ls -lah ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
ls: /Users/jritsema/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2: No such file or directory
~/code/code-server (master) $ docker build -t vscode .
Sending build context to Docker daemon 12.42MB
Step 1/18 : FROM node:10.15.1
10.15.1: Pulling from library/node
741437d97401: Pull complete
34d8874714d7: Pull complete
0a108aa26679: Pull complete
7f0334c36886: Pull complete
65c95cb8b3be: Pull complete
a36b708560f8: Pull complete
4090f912e6c7: Pull complete
ce5fe2607c2e: Pull complete
Digest: sha256:91d4f8b1d5094d413afdcae4af37e4361686019691c441c09a021864ddeb468e
Status: Downloaded newer image for node:10.15.1
---> 8fc2110c6978
Step 2/18 : RUN apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev
---> Running in 40411062416d
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [499 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.4 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Fetched 7914 kB in 1s (4766 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
gir1.2-secret-1 libsecret-1-0 libsecret-common libxkbfile1
The following NEW packages will be installed:
gir1.2-secret-1 libsecret-1-0 libsecret-1-dev libsecret-common
libxkbfile-dev libxkbfile1
0 upgraded, 6 newly installed, 0 to remove and 54 not upgraded.
Need to get 470 kB of archives.
After this operation, 3387 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libsecret-common all 0.18.5-3.1 [24.0 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 libsecret-1-0 amd64 0.18.5-3.1 [96.5 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 gir1.2-secret-1 amd64 0.18.5-3.1 [11.0 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libsecret-1-dev amd64 0.18.5-3.1 [181 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 libxkbfile1 amd64 1:1.0.9-2 [74.6 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 libxkbfile-dev amd64 1:1.0.9-2 [82.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 470 kB in 0s (1442 kB/s)
Selecting previously unselected package libsecret-common.
(Reading database ... 29961 files and directories currently installed.)
Preparing to unpack .../0-libsecret-common_0.18.5-3.1_all.deb ...
Unpacking libsecret-common (0.18.5-3.1) ...
Selecting previously unselected package libsecret-1-0:amd64.
Preparing to unpack .../1-libsecret-1-0_0.18.5-3.1_amd64.deb ...
Unpacking libsecret-1-0:amd64 (0.18.5-3.1) ...
Selecting previously unselected package gir1.2-secret-1:amd64.
Preparing to unpack .../2-gir1.2-secret-1_0.18.5-3.1_amd64.deb ...
Unpacking gir1.2-secret-1:amd64 (0.18.5-3.1) ...
Selecting previously unselected package libsecret-1-dev:amd64.
Preparing to unpack .../3-libsecret-1-dev_0.18.5-3.1_amd64.deb ...
Unpacking libsecret-1-dev:amd64 (0.18.5-3.1) ...
Selecting previously unselected package libxkbfile1:amd64.
Preparing to unpack .../4-libxkbfile1_1%3a1.0.9-2_amd64.deb ...
Unpacking libxkbfile1:amd64 (1:1.0.9-2) ...
Selecting previously unselected package libxkbfile-dev:amd64.
Preparing to unpack .../5-libxkbfile-dev_1%3a1.0.9-2_amd64.deb ...
Unpacking libxkbfile-dev:amd64 (1:1.0.9-2) ...
Setting up libxkbfile1:amd64 (1:1.0.9-2) ...
Setting up libsecret-common (0.18.5-3.1) ...
Setting up libxkbfile-dev:amd64 (1:1.0.9-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libsecret-1-0:amd64 (0.18.5-3.1) ...
Setting up gir1.2-secret-1:amd64 (0.18.5-3.1) ...
Setting up libsecret-1-dev:amd64 (0.18.5-3.1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Removing intermediate container 40411062416d
---> bee2653534c4
Step 3/18 : RUN npm install -g yarn@1.13
---> Running in 8b8c0b35c2d4
/usr/local/bin/yarnpkg -> /usr/local/lib/node_modules/yarn/bin/yarn.js
/usr/local/bin/yarn -> /usr/local/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.13.0
added 1 package in 0.454s
Removing intermediate container 8b8c0b35c2d4
---> 87f0e53bc1e4
Step 4/18 : WORKDIR /src
---> Running in 6e049d37b13c
Removing intermediate container 6e049d37b13c
---> 101638e77f36
Step 5/18 : COPY . .
---> b400f4b8bc1e
Step 6/18 : RUN yarn && NODE_ENV=production yarn task build:server:binary
---> Running in 9b7e44e98c34
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ npm-run-all --parallel packages:install build:rules
yarn run v1.13.0
yarn run v1.13.0
$ cd ./packages && yarn
$ cd ./rules && tsc -p .
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
Done in 3.82s.
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ ../node_modules/.bin/ts-node ../scripts/install-packages.ts
INFO Installing "disposable" dependencies...
INFO Successfully grabbed "disposable" dependencies!
INFO Installing "dns" dependencies...
INFO Successfully grabbed "dns" dependencies!
INFO Installing "events" dependencies...
INFO Successfully grabbed "events" dependencies!
INFO Installing "ide" dependencies...
INFO Successfully grabbed "ide" dependencies!
INFO Installing "ide-api" dependencies...
INFO Successfully grabbed "ide-api" dependencies!
INFO Installing "logger" dependencies...
INFO Successfully grabbed "logger" dependencies!
INFO Installing "protocol" dependencies...
INFO Successfully grabbed "protocol" dependencies!
INFO Installing "requirefs" dependencies...
INFO Successfully grabbed "requirefs" dependencies!
INFO Installing "runner" dependencies...
INFO Successfully grabbed "runner" dependencies!
INFO Installing "server" dependencies...
INFO Successfully grabbed "server" dependencies!
INFO Installing "tunnel" dependencies...
INFO Successfully grabbed "tunnel" dependencies!
INFO Installing "vscode" dependencies...
INFO Successfully grabbed "vscode" dependencies!
INFO Installing "web" dependencies...
INFO Successfully grabbed "web" dependencies!
INFO Installing "browser" dependencies...
INFO Successfully grabbed "browser" dependencies!
INFO Installing "chrome" dependencies...
INFO Successfully grabbed "chrome" dependencies!
INFO Installing "common" dependencies...
INFO Successfully grabbed "common" dependencies!
Done in 97.19s.
Done in 131.04s.
yarn run v1.13.0
$ ts-node -r tsconfig-paths/register build/tasks.ts build:server:binary
INFO BUILD:SERVER:BINARY Starting...
INFO Building with environment {"env":{"NODE_ENV":"production"}}
INFO VSCODE:INSTALL Starting...
INFO VSCODE:INSTALL Completed! time=18919ms {"time":{"expected":9007199254740991,"ms":1562785664995}}
INFO BUILD:BOOTSTRAP-FORK Starting...
INFO BUILD:WEB Starting...
INFO BUILD:SERVER:BUNDLE Starting...
INFO BUILD:SERVER:BUNDLE Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/server"}}
INFO BUILD:APP:BROWSER Starting...
INFO VSCODE:PATCH Starting...
INFO BUILD:APP:BROWSER Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/app/browser"}}
INFO VSCODE:PATCH Executing 'git ["apply","--unidiff-zero","/src/scripts/vscode.patch"]' {"options":{"cwd":"/src/lib/vscode"}}
INFO VSCODE:PATCH Completed! time=76ms {"time":{"expected":9007199254740991,"ms":1562785683935}}
INFO BUILD:BOOTSTRAP-FORK Executing 'npm ["run","build:bootstrap-fork"]' {"options":{"cwd":"/src/packages/vscode"}}
INFO BUILD:WEB Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/web"}}
INFO BUILD:APP:BROWSER Completed! time=15381ms {"time":{"expected":9007199254740991,"ms":1562785683935}}
The command '/bin/sh -c yarn && NODE_ENV=production yarn task build:server:binary' returned a non-zero code: 137
~/code/code-server (master) $ https://console.aws.amazon.com/support/cases?region=us-east-1#/6240936401/en
~/code/code-server (master) $ docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" vscode --allow-http --no-auth
Unable to find image 'vscode:latest' locally
docker: Error response from daemon: pull access denied for vscode, repository does not exist or may require 'docker login'.
See 'docker run --help'.
~/code/code-server (master) $ docker build -t vscode .
Sending build context to Docker daemon 12.42MB
Step 1/18 : FROM node:10.15.1
---> 8fc2110c6978
Step 2/18 : RUN apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev
---> Using cache
---> bee2653534c4
Step 3/18 : RUN npm install -g yarn@1.13
---> Using cache
---> 87f0e53bc1e4
Step 4/18 : WORKDIR /src
---> Using cache
---> 101638e77f36
Step 5/18 : COPY . .
---> Using cache
---> b400f4b8bc1e
Step 6/18 : RUN yarn && NODE_ENV=production yarn task build:server:binary
---> Running in c57c59af2f05
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ npm-run-all --parallel packages:install build:rules
yarn run v1.13.0
yarn run v1.13.0
$ cd ./packages && yarn
$ cd ./rules && tsc -p .
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
Done in 4.13s.
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ ../node_modules/.bin/ts-node ../scripts/install-packages.ts
INFO Installing "disposable" dependencies...
INFO Successfully grabbed "disposable" dependencies!
INFO Installing "dns" dependencies...
INFO Successfully grabbed "dns" dependencies!
INFO Installing "events" dependencies...
INFO Successfully grabbed "events" dependencies!
INFO Installing "ide" dependencies...
INFO Successfully grabbed "ide" dependencies!
INFO Installing "ide-api" dependencies...
INFO Successfully grabbed "ide-api" dependencies!
INFO Installing "logger" dependencies...
INFO Successfully grabbed "logger" dependencies!
INFO Installing "protocol" dependencies...
INFO Successfully grabbed "protocol" dependencies!
INFO Installing "requirefs" dependencies...
INFO Successfully grabbed "requirefs" dependencies!
INFO Installing "runner" dependencies...
INFO Successfully grabbed "runner" dependencies!
INFO Installing "server" dependencies...
INFO Successfully grabbed "server" dependencies!
INFO Installing "tunnel" dependencies...
INFO Successfully grabbed "tunnel" dependencies!
INFO Installing "vscode" dependencies...
INFO Successfully grabbed "vscode" dependencies!
INFO Installing "web" dependencies...
INFO Successfully grabbed "web" dependencies!
INFO Installing "browser" dependencies...
INFO Successfully grabbed "browser" dependencies!
INFO Installing "chrome" dependencies...
INFO Successfully grabbed "chrome" dependencies!
INFO Installing "common" dependencies...
INFO Successfully grabbed "common" dependencies!
Done in 88.44s.
Done in 122.71s.
yarn run v1.13.0
$ ts-node -r tsconfig-paths/register build/tasks.ts build:server:binary
INFO BUILD:SERVER:BINARY Starting...
INFO Building with environment {"env":{"NODE_ENV":"production"}}
INFO VSCODE:INSTALL Starting...
INFO VSCODE:INSTALL Completed! time=17854ms {"time":{"expected":9007199254740991,"ms":1562786035190}}
INFO BUILD:BOOTSTRAP-FORK Starting...
INFO BUILD:WEB Starting...
INFO BUILD:SERVER:BUNDLE Starting...
INFO BUILD:SERVER:BUNDLE Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/server"}}
INFO BUILD:APP:BROWSER Starting...
INFO VSCODE:PATCH Starting...
INFO BUILD:APP:BROWSER Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/app/browser"}}
INFO VSCODE:PATCH Executing 'git ["apply","--unidiff-zero","/src/scripts/vscode.patch"]' {"options":{"cwd":"/src/lib/vscode"}}
INFO VSCODE:PATCH Completed! time=60ms {"time":{"expected":9007199254740991,"ms":1562786053057}}
INFO BUILD:BOOTSTRAP-FORK Executing 'npm ["run","build:bootstrap-fork"]' {"options":{"cwd":"/src/packages/vscode"}}
INFO BUILD:WEB Executing 'npm ["run","build"]' {"options":{"cwd":"/src/packages/web"}}
INFO BUILD:APP:BROWSER Completed! time=17033ms {"time":{"expected":9007199254740991,"ms":1562786053057}}
The command '/bin/sh -c yarn && NODE_ENV=production yarn task build:server:binary' returned a non-zero code: 137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment