Skip to content

Commit 3d4d00e

Browse files
committed
Rename container and release-container to images and release-image
1 parent 1860aef commit 3d4d00e

File tree

14 files changed

+41
-21
lines changed

14 files changed

+41
-21
lines changed

.github/workflows/ci.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v1
1010
- name: Run ./ci/steps/fmt.sh
11-
uses: ./ci/container
11+
uses: ./ci/images/debian:8
1212
with:
1313
args: ./ci/steps/fmt.sh
1414

@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v1
1919
- name: Run ./ci/steps/lint.sh
20-
uses: ./ci/container
20+
uses: ./ci/images/debian:8
2121
with:
2222
args: ./ci/steps/lint.sh
2323

@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v1
2828
- name: Run ./ci/steps/test.sh
29-
uses: ./ci/container
29+
uses: ./ci/images/debian:8
3030
with:
3131
args: ./ci/steps/test.sh
3232

@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v1
3737
- name: Run ./ci/steps/release.sh
38-
uses: ./ci/container
38+
uses: ./ci/images/debian:8
3939
with:
4040
args: ./ci/steps/release.sh
4141
- name: Upload npm package artifact
@@ -55,7 +55,7 @@ jobs:
5555
name: npm-package
5656
path: ./release-npm-package
5757
- name: Run ./ci/steps/release-packages.sh
58-
uses: ./ci/container/centos
58+
uses: ./ci/images/centos:7
5959
with:
6060
args: ./ci/steps/release-packages.sh
6161
- name: Upload release artifacts
@@ -75,7 +75,7 @@ jobs:
7575
name: npm-package
7676
path: ./release-npm-package
7777
- name: Run ./ci/steps/release-packages.sh
78-
uses: ./ci/container/centos
78+
uses: ./ci/images/centos:7
7979
with:
8080
args: ./ci/steps/release-packages.sh
8181
- name: Upload release artifacts
@@ -116,7 +116,7 @@ jobs:
116116
name: release-packages
117117
path: ./release-packages
118118
- name: Run ./ci/steps/build-docker-image.sh
119-
uses: ./ci/container
119+
uses: ./ci/images/debian:8
120120
with:
121121
args: ./ci/steps/build-docker-image.sh
122122
- name: Upload release image
@@ -136,7 +136,7 @@ jobs:
136136
name: release-packages
137137
path: ./release-packages
138138
- name: Run ./ci/steps/build-docker-image.sh
139-
uses: ./ci/container/arm64
139+
uses: ./ci/images/debian:8
140140
with:
141141
args: ./ci/steps/build-docker-image.sh
142142
- name: Upload release image

.github/workflows/publish.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v1
1212
- name: Run ./ci/steps/publish-npm.sh
13-
uses: ./ci/container
13+
uses: ./ci/images/debian:8
1414
with:
1515
args: ./ci/steps/publish-npm.sh
1616
env:
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v1
2424
- name: Run ./ci/steps/push-docker-manifest.sh
25-
uses: ./ci/container
25+
uses: ./ci/images/debian:8
2626
with:
2727
args: ./ci/steps/push-docker-manifest.sh
2828
env:

ci/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ You can disable minification by setting `MINIFY=`.
104104
- Post install script for the npm package.
105105
- Bundled by`yarn release`.
106106

107-
## release-container
107+
## release-image
108108

109-
This directory contains the release docker container.
109+
This directory contains the release docker container image.
110110

111-
- [./release-container/build.sh](./release-container/build.sh)
111+
- [./release-image/build.sh](./release-image/build.sh)
112112
- Builds the release container with the tag `codercom/code-server-$ARCH:$VERSION`.
113113
- Assumes debian releases are ready in `./release-packages`.
114114

115-
## container
115+
## images
116116

117-
This directory contains the container for CI.
117+
This directory contains the images for CI.
118118

119119
## steps
120120

ci/build/test-standalone-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ main() {
1515
./release-standalone/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension ms-python.python
1616
local installed_extensions
1717
installed_extensions="$(./release-standalone/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --list-extensions 2>&1)"
18-
if [[ "$installed_extensions" != "info Using config file ~/.config/code-server/config.yaml
18+
if [[ $installed_extensions != "info Using config file ~/.config/code-server/config.yaml
1919
ms-python.python" ]]; then
2020
echo "Unexpected output from listing extensions:"
2121
echo "$installed_extensions"

ci/dev/fmt.sh

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ main() {
2424
doctoc --title '# FAQ' doc/FAQ.md > /dev/null
2525
doctoc --title '# Setup Guide' doc/guide.md > /dev/null
2626
doctoc --title '# Install' doc/install.md > /dev/null
27+
doctoc --title '# npm Install Requirements' doc/npm.md > /dev/null
28+
doctoc --title '# Contributing' doc/CONTRIBUTING.md > /dev/null
2729

2830
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard) ]]; then
2931
echo "Files need generation or are formatted incorrectly:"

ci/dev/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ main() {
77
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js")
88
stylelint $(git ls-files "*.css")
99
tsc --noEmit
10-
# See comment in ./ci/container/Dockerfile
10+
# See comment in ./ci/image/debian:8
1111
if [[ ! ${CI-} ]]; then
1212
shellcheck -e SC2046,SC2164,SC2154,SC1091,SC1090 $(git ls-files "*.sh")
1313
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.

ci/release-container/build.sh renamed to ci/release-image/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main() {
55
cd "$(dirname "$0")/../.."
66
source ./ci/lib.sh
77

8-
docker build -t "codercom/code-server-$ARCH:$VERSION" -f ./ci/release-container/Dockerfile .
8+
docker build -t "codercom/code-server-$ARCH:$VERSION" -f ./ci/release-image/Dockerfile .
99
}
1010

1111
main "$@"

ci/steps/build-docker-image.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main() {
55
cd "$(dirname "$0")/../.."
66
source ./ci/lib.sh
77

8-
./ci/release-container/build.sh
8+
./ci/release-image/build.sh
99

1010
mkdir -p release-images
1111
docker save "codercom/code-server-$ARCH:$VERSION" > "release-images/code-server-$ARCH-$VERSION.tar"

ci/steps/release-packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
main() {
55
cd "$(dirname "$0")/../.."
66

7-
if [[ "$OSTYPE" == darwin* ]]; then
7+
if [[ $OSTYPE == darwin* ]]; then
88
curl -L https://nodejs.org/dist/v14.4.0/node-v14.4.0-darwin-x64.tar.gz | tar -xz
99
PATH="$PATH:node-v14.4.0-darwin-x64/bin"
1010
fi

doc/CONTRIBUTING.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
13
# Contributing
24

5+
- [Requirements](#requirements)
6+
- [Development Workflow](#development-workflow)
7+
- [Build](#build)
8+
- [Structure](#structure)
9+
- [VS Code Patch](#vs-code-patch)
10+
11+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
12+
313
- [Detailed CI and build process docs](../ci)
414

515
## Requirements
@@ -11,7 +21,7 @@ Differences:
1121
- We require a minimum of node v12 but later versions should work.
1222
- We use [fnpm](https://github.com/goreleaser/nfpm) to build `.deb` and `.rpm` packages.
1323
- We use [jq](https://stedolan.github.io/jq/) to build code-server releases.
14-
- The [CI container](../ci/container/Dockerfile) is a useful reference for all our dependencies.
24+
- The [CI container](../ci/images/debian:8/Dockerfile) is a useful reference for all our dependencies.
1525

1626
## Development Workflow
1727

doc/npm.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
13
# npm Install Requirements
24

5+
- [Ubuntu, Debian](#ubuntu-debian)
6+
- [Fedora, CentOS, RHEL](#fedora-centos-rhel)
7+
- [macOS](#macos)
8+
9+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
10+
311
If you're installing the npm module you'll need certain dependencies to build
412
the native modules used by VS Code.
513

0 commit comments

Comments
 (0)