Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-code-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MyDockerImages
docker-code-server
Commits
7fb25d3f
Unverified
Commit
7fb25d3f
authored
4 years ago
by
aptalca
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #32 from linuxserver/yarn
shrink image, install via yarn, fix arm build
parents
7fcde50b
0b97beb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+8
-2
8 additions, 2 deletions
Dockerfile
Dockerfile.aarch64
+8
-2
8 additions, 2 deletions
Dockerfile.aarch64
Dockerfile.armhf
+8
-2
8 additions, 2 deletions
Dockerfile.armhf
README.md
+1
-0
1 addition, 0 deletions
README.md
readme-vars.yml
+1
-0
1 addition, 0 deletions
readme-vars.yml
with
26 additions
and
6 deletions
Dockerfile
+
8
−
2
View file @
7fb25d3f
...
@@ -18,6 +18,9 @@ RUN \
...
@@ -18,6 +18,9 @@ RUN \
curl
-s
https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
&&
\
curl
-s
https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
&&
\
echo
'deb https://deb.nodesource.com/node_12.x bionic main'
\
echo
'deb https://deb.nodesource.com/node_12.x bionic main'
\
>
/etc/apt/sources.list.d/nodesource.list
&&
\
>
/etc/apt/sources.list.d/nodesource.list
&&
\
curl
-s
https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
&&
\
echo
'deb https://dl.yarnpkg.com/debian/ stable main'
\
>
/etc/apt/sources.list.d/yarn.list
&&
\
echo
"**** install build dependencies ****"
&&
\
echo
"**** install build dependencies ****"
&&
\
apt-get update
&&
\
apt-get update
&&
\
apt-get
install
-y
\
apt-get
install
-y
\
...
@@ -33,14 +36,17 @@ RUN \
...
@@ -33,14 +36,17 @@ RUN \
nano
\
nano
\
net-tools
\
net-tools
\
nodejs
\
nodejs
\
sudo
&&
\
sudo
\
yarn
&&
\
echo
"**** install code-server ****"
&&
\
echo
"**** install code-server ****"
&&
\
if
[
-z
${
CODE_RELEASE
+x
}
]
;
then
\
if
[
-z
${
CODE_RELEASE
+x
}
]
;
then
\
CODE_RELEASE
=
$(
curl
-sX
GET
"https://api.github.com/repos/cdr/code-server/releases/latest"
\
CODE_RELEASE
=
$(
curl
-sX
GET
"https://api.github.com/repos/cdr/code-server/releases/latest"
\
|
awk
'/tag_name/{print $4;exit}'
FS
=
'[""]'
)
;
\
|
awk
'/tag_name/{print $4;exit}'
FS
=
'[""]'
)
;
\
fi
&&
\
fi
&&
\
CODE_VERSION
=
$(
echo
"
$CODE_RELEASE
"
|
awk
'{print substr($1,2); }'
)
&&
\
CODE_VERSION
=
$(
echo
"
$CODE_RELEASE
"
|
awk
'{print substr($1,2); }'
)
&&
\
npm
install
--unsafe-perm
-g
code-server@
"
$CODE_VERSION
"
&&
\
yarn
--production
global add code-server@
"
$CODE_VERSION
"
&&
\
yarn cache clean
&&
\
ln
-s
/node_modules/.bin/code-server /usr/bin/code-server
&&
\
echo
"**** clean up ****"
&&
\
echo
"**** clean up ****"
&&
\
apt-get purge
--auto-remove
-y
\
apt-get purge
--auto-remove
-y
\
build-essential
\
build-essential
\
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.aarch64
+
8
−
2
View file @
7fb25d3f
...
@@ -18,6 +18,9 @@ RUN \
...
@@ -18,6 +18,9 @@ RUN \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
> /etc/apt/sources.list.d/nodesource.list && \
> /etc/apt/sources.list.d/nodesource.list && \
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
> /etc/apt/sources.list.d/yarn.list && \
echo "**** install build dependencies ****" && \
echo "**** install build dependencies ****" && \
apt-get update && \
apt-get update && \
apt-get install -y \
apt-get install -y \
...
@@ -33,14 +36,17 @@ RUN \
...
@@ -33,14 +36,17 @@ RUN \
nano \
nano \
net-tools \
net-tools \
nodejs \
nodejs \
sudo && \
sudo \
yarn && \
echo "**** install code-server ****" && \
echo "**** install code-server ****" && \
if [ -z ${CODE_RELEASE+x} ]; then \
if [ -z ${CODE_RELEASE+x} ]; then \
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
fi && \
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
npm install --unsafe-perm -g code-server@"$CODE_VERSION" && \
yarn --production global add code-server@"$CODE_VERSION" && \
yarn cache clean && \
ln -s /node_modules/.bin/code-server /usr/bin/code-server && \
echo "**** clean up ****" && \
echo "**** clean up ****" && \
apt-get purge --auto-remove -y \
apt-get purge --auto-remove -y \
build-essential \
build-essential \
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.armhf
+
8
−
2
View file @
7fb25d3f
...
@@ -18,6 +18,9 @@ RUN \
...
@@ -18,6 +18,9 @@ RUN \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
> /etc/apt/sources.list.d/nodesource.list && \
> /etc/apt/sources.list.d/nodesource.list && \
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
> /etc/apt/sources.list.d/yarn.list && \
echo "**** install build dependencies ****" && \
echo "**** install build dependencies ****" && \
apt-get update && \
apt-get update && \
apt-get install -y \
apt-get install -y \
...
@@ -33,14 +36,17 @@ RUN \
...
@@ -33,14 +36,17 @@ RUN \
nano \
nano \
net-tools \
net-tools \
nodejs \
nodejs \
sudo && \
sudo \
yarn && \
echo "**** install code-server ****" && \
echo "**** install code-server ****" && \
if [ -z ${CODE_RELEASE+x} ]; then \
if [ -z ${CODE_RELEASE+x} ]; then \
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
fi && \
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
npm install --unsafe-perm -g code-server@"$CODE_VERSION" && \
yarn --production global add code-server@"$CODE_VERSION" && \
yarn cache clean && \
ln -s /node_modules/.bin/code-server /usr/bin/code-server && \
echo "**** clean up ****" && \
echo "**** clean up ****" && \
apt-get purge --auto-remove -y \
apt-get purge --auto-remove -y \
build-essential \
build-essential \
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
7fb25d3f
...
@@ -236,6 +236,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
...
@@ -236,6 +236,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
## Versions
* **21.05.20:** - Shrink images, install via yarn, fix arm32v7 build.
* **18.05.20:** - Switch to multi-arch images, install via npm.
* **18.05.20:** - Switch to multi-arch images, install via npm.
* **29.04.20:** - Update start arguments.
* **29.04.20:** - Update start arguments.
* **01.04.20:** - Structural changes required for v3.
* **01.04.20:** - Structural changes required for v3.
...
...
This diff is collapsed.
Click to expand it.
readme-vars.yml
+
1
−
0
View file @
7fb25d3f
...
@@ -67,6 +67,7 @@ app_setup_block: |
...
@@ -67,6 +67,7 @@ app_setup_block: |
# changelog
# changelog
changelogs
:
changelogs
:
-
{
date
:
"
21.05.20:"
,
desc
:
"
Shrink
images,
install
via
yarn,
fix
arm32v7
build."
}
-
{
date
:
"
18.05.20:"
,
desc
:
"
Switch
to
multi-arch
images,
install
via
npm."
}
-
{
date
:
"
18.05.20:"
,
desc
:
"
Switch
to
multi-arch
images,
install
via
npm."
}
-
{
date
:
"
29.04.20:"
,
desc
:
"
Update
start
arguments."
}
-
{
date
:
"
29.04.20:"
,
desc
:
"
Update
start
arguments."
}
-
{
date
:
"
01.04.20:"
,
desc
:
"
Structural
changes
required
for
v3."
}
-
{
date
:
"
01.04.20:"
,
desc
:
"
Structural
changes
required
for
v3."
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment