Skip to content

Commit

Permalink
chore(devcontainer): Fixed errors and added CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed Apr 14, 2023
1 parent ffbf6e9 commit 92b9f1b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
10 changes: 9 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ FROM ghcr.io/containerbase/node:18.16.0@sha256:fc48ac97eb5d0dee207d4a336a52d7d3b

USER root

RUN apt update; \
apt install -y software-properties-common make g++; \
add-apt-repository ppa:deadsnakes/ppa; \
apt update; \
apt install python3.12; \
ln -s /usr/bin/python3 /usr/bin/python


# renovate: datasource=npm
RUN install-tool yarn 1.22.19
RUN install-tool yarn 1.22.19; yarn install
29 changes: 17 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
{
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"memory": "7gb",
"storage": "32gb"
},
"name": "Renovate",
"dockerFile": "Dockerfile",
"settings": {
"terminal.integrated.profiles.linux": { "bash": { "path": "/bin/bash" } },
"terminal.integrated.defaultProfile.linux": "bash"
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": { "path": "/bin/bash" }
},
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"orta.vscode-jest",
"EditorConfig.editorconfig"
]
}
},
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"orta.vscode-jest",
"EditorConfig.editorconfig"
],
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--privileged"
],
"postCreateCommand": "yarn install"
]
}
20 changes: 20 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'devcontainer'
on:
pull_request:
branches:
- main

env:
NODE_ENV: test

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
runCmd: yarn test

0 comments on commit 92b9f1b

Please sign in to comment.