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 e529ab5
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 32 deletions.
31 changes: 31 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"hostRequirements": {
"cpus": 4,
"memory": "7gb",
"storage": "32gb"
},
"name": "Renovate",
"dockerFile": "Dockerfile",
"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"
]
}
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--privileged"
]
}
6 changes: 0 additions & 6 deletions .devcontainer/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions .devcontainer/devcontainer.json

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'devcontainer'
on:
pull_request:
branches:
- main

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

- name: Build and run dev container task
uses: devcontainers/ci@v0.3.1900000328
with:
runCmd: cd /root; yarn test
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ghcr.io/containerbase/node:18.16.0@sha256:fc48ac97eb5d0dee207d4a336a52d7d3be68e1adec01cc1d13a1c12fab80a265

USER root
WORKDIR /root

COPY . .

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 yarn install

0 comments on commit e529ab5

Please sign in to comment.