Skip to content

Commit

Permalink
Refactor env var sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Aug 21, 2024
1 parent 12de1c1 commit 165dbff
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .docker/c.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM gcc:4.8.5
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-c.sh $FOLDERS
CMD /code/scripts/docker/run-c.sh
2 changes: 1 addition & 1 deletion .docker/clj.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ RUN mkdir /code
WORKDIR /code
RUN mkdir /.clojure && chmod 777 /.clojure

CMD /code/scripts/docker/run-clj.sh $FOLDERS
CMD /code/scripts/docker/run-clj.sh
2 changes: 1 addition & 1 deletion .docker/cpp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM gcc:11.3.0
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-cpp.sh $FOLDERS
CMD /code/scripts/docker/run-cpp.sh
2 changes: 1 addition & 1 deletion .docker/cs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM mono:5.10.1
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-cs.sh $FOLDERS
CMD /code/scripts/docker/run-cs.sh
2 changes: 1 addition & 1 deletion .docker/dart.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM dart:3.0.5
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-dart.sh $FOLDERS
CMD /code/scripts/docker/run-dart.sh
2 changes: 1 addition & 1 deletion .docker/go.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ RUN mkdir /code
WORKDIR /code
RUN mkdir -p /.cache && chmod 777 /.cache

CMD /code/scripts/docker/run-go.sh $FOLDERS
CMD /code/scripts/docker/run-go.sh
2 changes: 1 addition & 1 deletion .docker/hs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM haskell:latest
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-hs.sh $FOLDERS
CMD /code/scripts/docker/run-hs.sh
2 changes: 1 addition & 1 deletion .docker/java.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM eclipse-temurin:11-jdk
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-java.sh $FOLDERS
CMD /code/scripts/docker/run-java.sh
2 changes: 1 addition & 1 deletion .docker/js.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM node:12.18.3
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-js.sh $FOLDERS
CMD /code/scripts/docker/run-js.sh
2 changes: 1 addition & 1 deletion .docker/kt.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN unzip kotlin-compiler-1.2.10.zip
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-kt.sh $FOLDERS
CMD /code/scripts/docker/run-kt.sh
2 changes: 1 addition & 1 deletion .docker/lua.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ RUN apt remove --purge -y \
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-lua.sh $FOLDERS
CMD /code/scripts/docker/run-lua.sh
2 changes: 1 addition & 1 deletion .docker/ml.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN cd ocaml-${OCAML_VERSION} && ./configure && make world.opt && make install
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-ml.sh $FOLDERS
CMD /code/scripts/docker/run-ml.sh
2 changes: 1 addition & 1 deletion .docker/pas.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN apt update && \
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-pas.sh $FOLDERS
CMD /code/scripts/docker/run-pas.sh
2 changes: 1 addition & 1 deletion .docker/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ WORKDIR /code

RUN apk add bash

CMD /code/scripts/docker/run-php.sh $FOLDERS
CMD /code/scripts/docker/run-php.sh
2 changes: 1 addition & 1 deletion .docker/py.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM python:3.11.4
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-py.sh $FOLDERS
CMD /code/scripts/docker/run-py.sh
2 changes: 1 addition & 1 deletion .docker/r.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM r-base:4.0.2
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-r.sh $FOLDERS
CMD /code/scripts/docker/run-r.sh
2 changes: 1 addition & 1 deletion .docker/rb.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM ruby:2.7.0
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-rb.sh $FOLDERS
CMD /code/scripts/docker/run-rb.sh
2 changes: 1 addition & 1 deletion .docker/rs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ENV RUST_BACKTRACE 1
RUN mkdir /code
WORKDIR /code

CMD /code/scripts/docker/run-rs.sh $FOLDERS
CMD /code/scripts/docker/run-rs.sh
2 changes: 1 addition & 1 deletion .docker/scala.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E4
RUN apt-get update
RUN apt-get install -y --force-yes scala

CMD /code/scripts/docker/run-scala.sh $FOLDERS
CMD /code/scripts/docker/run-scala.sh
2 changes: 1 addition & 1 deletion .docker/sql.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN cd /bin && \
wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \
chmod +x wait-for-it.sh

CMD /bin/wait-for-it.sh database-server:5432 && /code/scripts/docker/run-sql.sh $FOLDERS
CMD /bin/wait-for-it.sh database-server:5432 && /code/scripts/docker/run-sql.sh
2 changes: 0 additions & 2 deletions scripts/docker/run-c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ echo
echo "C"
echo

FOLDERS=$(find . -name 'problem.md' | sed 's/problem.md//g' | sort)

for folder in ${FOLDERS}; do
[[ -f "${folder}WRONG" ]] && continue

Expand Down

0 comments on commit 165dbff

Please sign in to comment.