-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
da5d3d1
commit 51cfd60
Showing
3 changed files
with
68 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,19 @@ | ||
name: Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
package: | ||
name: Build 22.04 Docker Image | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build docker image | ||
run: docker build -t ghcr.io/jonlamb-gh/trace-recorder-to-ctf:latest . | ||
|
||
- name: Push docker image | ||
run: docker push ghcr.io/jonlamb-gh/trace-recorder-to-ctf:latest |
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 @@ | ||
FROM ubuntu:22.04 | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/jonlamb-gh/trace-recorder-to-ctf | ||
LABEL org.opencontainers.image.description="Docker image for trace-recorder-to-ctf" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends --assume-yes \ | ||
patchelf lintian adduser help2man gzip \ | ||
cmake make gcc g++ libusb-1.0-0-dev stunnel \ | ||
curl build-essential protobuf-compiler libssl-dev \ | ||
python3 python3-pip python3-venv \ | ||
libglib2.0-dev pkg-config libtool flex bison autoconf ca-certificates automake | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --profile minimal -c rustfmt -c clippy | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN mkdir -p /trace-recorder-to-ctf | ||
COPY assets/ /trace-recorder-to-ctf/assets/ | ||
COPY Cargo.lock /trace-recorder-to-ctf/ | ||
COPY Cargo.toml /trace-recorder-to-ctf/ | ||
COPY LICENSE-MIT /trace-recorder-to-ctf/ | ||
COPY macros/ /trace-recorder-to-ctf/macros/ | ||
COPY README.md /trace-recorder-to-ctf/ | ||
COPY src/ /trace-recorder-to-ctf/src/ | ||
|
||
RUN cd /trace-recorder-to-ctf && ls -l && cargo install --path . | ||
|
||
ENTRYPOINT ["/root/.cargo/bin/trace-recorder-to-ctf"] |
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