Skip to content
Snippets Groups Projects
Unverified Commit d0020d1f authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Fix DockerHub build (#13462)

parent 722d40ed
No related branches found
No related tags found
No related merge requests found
......@@ -11,20 +11,26 @@ ENV FC_LANG en-US
ENV LC_CTYPE en_US.UTF-8
# bash: various shell scripts
# wget: installing lein
# wget: installing lein (TODO -- is this actually needed? We don't use wget directly)
# curl: needed by script that installs Clojure CLI
# git: ./bin/version
# yarn: frontend building
# make: backend building
# yarn: frontend building
# make: backend building (TODO -- huh? We don't use Make to build the backend)
# gettext: translations
# java-cacerts: installs updated cacerts to /etc/ssl/certs/java/cacerts
RUN apk add --update coreutils bash yarn git wget make gettext java-cacerts
RUN apk add --update coreutils bash yarn git wget curl make gettext java-cacerts
# lein: backend dependencies and building
ADD https://raw.github.com/technomancy/leiningen/stable/bin/lein /usr/local/bin/lein
RUN chmod 744 /usr/local/bin/lein
RUN lein upgrade
# Clojure CLI (needed for some build scripts)
ADD https://download.clojure.org/install/linux-install-1.10.1.708.sh /tmp/linux-install-1.10.1.708.sh
RUN chmod +x /tmp/linux-install-1.10.1.708.sh
RUN /tmp/linux-install-1.10.1.708.sh
# install dependencies before adding the rest of the source to maximize caching
# backend dependencies
......
......@@ -93,9 +93,9 @@
(u/sh {:dir (c/driver-project-dir driver)} "lein" "clean")
(u/sh {:dir (c/driver-project-dir driver)
:env {"LEIN_SNAPSHOTS_IN_RELEASE" "true"
#_"DEBUG" #_"1"
"JAVA_HOME" (env/env :java-home)
"HOME" (env/env :user-home)}}
"HOME" (env/env :user-home)
"PATH" (env/env :path)
"JAVA_HOME" (env/env :java-home)}}
"lein" "uberjar")
(strip-and-compress-uberjar! driver)
(u/announce "%s uberjar build successfully." driver)))
......
......@@ -10,7 +10,8 @@
(let [e-map (Throwable->map e)]
(println (colorize/red (str "Command failed: " (:cause e-map))))
(binding [pprint/*print-right-margin* 120]
(pprint/pprint e-map))))))
(pprint/pprint e-map)))
(System/exit -1))))
(defmacro exit-when-finished-nonzero-on-exception
"Execute `body` and catch exceptions. If an Exception is thrown, exit with status code 0; if an exception was
......
......@@ -32,7 +32,7 @@
* `env` -- environment variables (as a map) to use when running `cmd`. If `:env` is `nil`, the default parent
environment (i.e., the environment in which this Clojure code itself is ran) will be used; if `:env` IS passed, it
completely replaces the parent environment in which this script is ran -- make sure you pass anything that might be
needed such as `JAVA_HOME` if you do this
needed such as `JAVA_HOME` and `PATH` if you do this
* `dir` -- current directory to use when running the shell command. If not specified, command is run in the same
current directory as the Clojure scripts, `bin/build-drivers`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment