-
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
0 parents
commit 06e88d1
Showing
3 changed files
with
67 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,40 @@ | ||
name: Docker | ||
on: | ||
push: | ||
branches: ["main"] | ||
tags: ["v*.*.*"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Login to registry | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,16 @@ | ||
FROM debian:trixie | ||
|
||
ARG VERSION=15.1.5 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yq --no-install-recommends --fix-broken default-jre wget | ||
|
||
# https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/30 | ||
RUN wget -q https://github.com/Wisser/Jailer/releases/download/v${VERSION}/jailer-database-tools_${VERSION}-x64.deb -O jailer.deb && \ | ||
dpkg -i jailer.deb || true && \ | ||
mkdir -p /usr/share/desktop-directories && \ | ||
apt-get install -yq --no-install-recommends --fix-broken && \ | ||
rm jailer.deb | ||
|
||
VOLUME /root/.jailer | ||
CMD ["/opt/jailer-database-tools/bin/Jailer Database Tools"] |
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,11 @@ | ||
services: | ||
jailer: | ||
build: . | ||
environment: | ||
- DISPLAY | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix:ro | ||
- jailer:/root/.jailer | ||
|
||
volumes: | ||
jailer: |