Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
HettieS committed Nov 6, 2023
1 parent ef70bc4 commit 4dc3b6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ RUN su vscode -c "/usr/local/rvm/bin/rvm fix-permissions"
# The value is a comma-separated list of allowed domains
ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.preview.app.github.dev,.app.github.dev"

# Build PDFTK
FROM ghcr.io/graalvm/graalvm-ce:22.2.0 as pdftkbuilder
RUN gu install native-image
WORKDIR /build
RUN curl https://gitlab.com/api/v4/projects/5024297/packages/generic/pdftk-java/v3.3.3/pdftk-all.jar --output pdftk-all.jar \
&& curl https://gitlab.com/pdftk-java/pdftk/-/raw/v3.3.3/META-INF/native-image/reflect-config.json --output reflect-config.json \
&& curl https://gitlab.com/pdftk-java/pdftk/-/raw/v3.3.3/META-INF/native-image/resource-config.json --output resource-config.json \
&& native-image --static -jar pdftk-all.jar \
-H:Name=pdftk \
-H:ResourceConfigurationFiles='resource-config.json' \
-H:ReflectionConfigurationFiles='reflect-config.json' \
-H:GenerateDebugInfo=0

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
Expand Down
Empty file modified .devcontainer/boot.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"features": {
"ghcr.io/devcontainers/features/sshd:1": {},
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": "libpq-dev"
"packages": "libpq-dev, pdftk"
},
"ghcr.io/devcontainers/features/git:1": {
"version": "latest"
Expand All @@ -37,7 +37,7 @@
"forwardPorts": [3000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "boot.sh",
"postCreateCommand": ".devcontainer/boot.sh",

// Configure tool-specific properties.
"customizations": {
Expand Down
6 changes: 6 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ default: &default
development:
<<: *default
database: ccq_development
host: db
username: postgres
password: postgres

test:
<<: *default
database: ccq_test
host: db
username: postgres
password: postgres

production:
<<: *default
Expand Down

0 comments on commit 4dc3b6f

Please sign in to comment.