-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tuomas Tielinen
committed
Aug 26, 2024
1 parent
2797b06
commit 345bba6
Showing
4 changed files
with
80 additions
and
0 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 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu |
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,45 @@ | ||
{ | ||
"name": "Ubuntu", | ||
"build": { | ||
"dockerfile": "Containerfile" | ||
}, | ||
"mounts": [ | ||
"source=${localEnv:HOME},target=/host-home-folder,type=bind,consistency=cached" | ||
], | ||
"features": { | ||
"ghcr.io/rjfmachado/devcontainer-features/cloud-native:1": {}, | ||
"ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/hspaans/devcontainer-features/ansible-lint:1": {}, | ||
"ghcr.io/akhildevelops/devcontainer-features/pip:0": { | ||
"PACKAGES": "ansible" | ||
}, | ||
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": { | ||
"jq": "latest", | ||
"yq": "latest" | ||
}, | ||
"ghcr.io/gickis/devcontainer-features/kubeseal:1": {}, | ||
"ghcr.io/schlich/devcontainer-features/starship": {}, | ||
"ghcr.io/paul-gilber/devcontainer-features/buildah-apt-get:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"ansible.validation.lint.path": "/usr/local/bin/ansible-lint", | ||
"ansible.ansible.path": "/usr/local/bin/ansible" | ||
}, | ||
"extensions": [ | ||
"adamhartford.vscode-base64", | ||
"coolbear.systemd-unit-file", | ||
"GitHub.copilot", | ||
"GitHub.copilot-chat", | ||
"GitHub.vscode-github-actions", | ||
"jlcs-es.x509-parser", | ||
"mads-hartmann.bash-ide-vscode", | ||
"ms-azuretools.vscode-docker", | ||
"redhat.ansible", | ||
"redhat.vscode-yaml", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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,30 @@ | ||
name: 'build' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '30 5 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pre-build dev container image | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/tuomastielinen/dev-container-work-tools/devcontainer | ||
cacheFrom: ghcr.io/tuomastielinen/dev-container-work-tools/devcontainer | ||
push: always |
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 +1,5 @@ | ||
# dev-container-work-tools | ||
|
||
## Dev Containers | ||
|
||
Available features can be found [here](https://containers.dev/features). |