Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Aug 23, 2023
0 parents commit 06e88d1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker.yaml
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 }}
16 changes: 16 additions & 0 deletions Dockerfile
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"]
11 changes: 11 additions & 0 deletions docker-compose.yml
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:

0 comments on commit 06e88d1

Please sign in to comment.