Skip to content

Commit

Permalink
add dev dockerfile and dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Mar 25, 2023
1 parent 0958cf5 commit 17e3134
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"build": {
"context": "..",
"dockerfile": "../dev.dockerfile"
}
}
9 changes: 9 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
with:
submodules: 'recursive'

- name: install deps
run: |
sudo apt-get install -y --no-install-recommends \
libelf1 libelf-dev zlib1g-dev libclang-13-dev \
make git clang llvm pkg-config build-essential
- name: build package
run: make build

# setup Docker buld action
- name: Set up Docker Buildx
id: buildx
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
sudo apt-get install -y --no-install-recommends \
libelf1 libelf-dev zlib1g-dev libclang-13-dev \
make git clang llvm pkg-config build-essential
- name: build package
run: make build

Expand Down
15 changes: 15 additions & 0 deletions dev.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:22.04

WORKDIR /root/
COPY . /root/

RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
libelf1 libelf-dev zlib1g-dev libclang-13-dev \
make git clang llvm pkg-config build-essential && \
apt-get install -y --no-install-recommends ca-certificates && \
update-ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/bin/bash"]

0 comments on commit 17e3134

Please sign in to comment.