From adf312df789b826181f80cf85b26042dc8de8876 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Thu, 9 Jan 2025 16:24:09 -0600 Subject: [PATCH] more docker stuff --- Dockerfile | 4 +++- build/build-pipeline-client-markdown.sh | 4 ++-- env/{CandidateVariables.env => ResumeVariables.env} | 0 run.sh | 5 +++++ 4 files changed, 10 insertions(+), 3 deletions(-) rename env/{CandidateVariables.env => ResumeVariables.env} (100%) create mode 100644 run.sh diff --git a/Dockerfile b/Dockerfile index e96b11a..b5d24d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Use a base image with Pandoc and LaTeX -FROM pandoc/latex:latest +FROM ubuntu:24.04 + # Set working directory WORKDIR /app @@ -8,6 +9,7 @@ WORKDIR /app RUN apt-get update && \ apt-get install -y \ bash \ + pandoc \ git \ && rm -rf /var/lib/apt/lists/* diff --git a/build/build-pipeline-client-markdown.sh b/build/build-pipeline-client-markdown.sh index 3e59fa6..c1ac12e 100644 --- a/build/build-pipeline-client-markdown.sh +++ b/build/build-pipeline-client-markdown.sh @@ -5,9 +5,9 @@ set -euo pipefail IFS=$'\n\t' # Check if the environment variables file exists -ENV_FILE="/env/CandidateVariables.env" +ENV_FILE="/env/ResumeVariables.env" if [[ ! -f "$ENV_FILE" ]]; then - echo "Error: Environment variables file not found at $ENV_FILE" + echo "Error: Inside script: Environment variables file not found at $ENV_FILE" exit 1 fi diff --git a/env/CandidateVariables.env b/env/ResumeVariables.env similarity index 100% rename from env/CandidateVariables.env rename to env/ResumeVariables.env diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..83b9f3c --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +docker run --rm \ + -v "./env/ResumeVariables.env:/env/ResumeVariables.env:ro" \ + -v "./Resume-Input:/Resume-Input" \ + -v "./Resume-Output:/Resume-Output" \ + markdown-pipeline-client:latest \ No newline at end of file