-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initiate migration to devcontainer prebuilds
- Loading branch information
1 parent
4139820
commit e41b14f
Showing
19 changed files
with
578 additions
and
478 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": ["*/devcontainer-feature.json"], | ||
"url": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerFeature.schema.json" | ||
} | ||
] | ||
}, | ||
"extensions": ["mads-hartmann.bash-ide-vscode"] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
}, | ||
"remoteUser": "node", | ||
"updateContentCommand": "npm install -g @devcontainers/cli" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "uwu/basic-env - Base", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"remoteUser": "coder" | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docker/dart/Dockerfile → ...evcontainer/dart/.devcontainer/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM uwunet/basic-env-base:latest | ||
FROM ghcr.io/uwu/basic-env/base:latest | ||
|
||
USER root | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "uwu/basic-env - Dart", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"remoteUser": "coder" | ||
} | ||
|
20 changes: 10 additions & 10 deletions
20
docker/java/Dockerfile → ...evcontainer/java/.devcontainer/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM uwunet/basic-env-base:latest | ||
|
||
USER root | ||
|
||
# Install requirements | ||
RUN DEBIAN_FRONTEND="noninteractive" apt install -y zip unzip | ||
|
||
USER coder | ||
|
||
# Install sdkman | ||
FROM ghcr.io/uwu/basic-env/base:latest | ||
|
||
USER root | ||
|
||
# Install requirements | ||
RUN DEBIAN_FRONTEND="noninteractive" apt install -y zip unzip | ||
|
||
USER coder | ||
|
||
# Install sdkman | ||
RUN curl -s "https://get.sdkman.io" | bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "uwu/basic-env - Java", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"remoteUser": "coder" | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
docker/javascript/Dockerfile → ...ainer/javascript/.devcontainer/Dockerfile
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
10 changes: 10 additions & 0 deletions
10
.github/devcontainer/javascript/.devcontainer/devcontainer.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "uwu/basic-env - JavaScript", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"remoteUser": "coder" | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: (reusable) Dev Container Build and Push images | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
image: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
if: github.event_name != 'pull_request' | ||
|
||
- name: "Pre-build '${{ inputs.image }}' image" | ||
uses: devcontainers/ci@v0.3 | ||
with: | ||
subFolder: .github/devcontainer/${{ inputs.image }} | ||
imageName: ghcr.io/${{ github.repository }}/${{ inputs.image }} | ||
cacheFrom: ghcr.io/${{ github.repository }}/${{ inputs.image }} | ||
push: ${{ github.event_name != 'pull_request' && 'always' || 'never' }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Build & push base image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
pull_requests: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
build: | ||
uses: uwu/basic-env/.github/workflows/_build-and-push.yml@main | ||
with: | ||
image: base |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Build & push other images | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
pull_requests: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
build: | ||
uses: uwu/basic-env/.github/workflows/_build-and-push.yml@main | ||
strategy: | ||
matrix: | ||
image: [dart, java, javascript] | ||
with: | ||
image: ${{ matrix.image }} |
Oops, something went wrong.