-
-
Save gyndav/c8d65b59793566ee73ed2aa25aa10497 to your computer and use it in GitHub Desktop.
FROM openjdk:8u151-jre-alpine | |
ENV SCALA_VERSION=2.12.4 \ | |
SCALA_HOME=/usr/share/scala | |
# NOTE: bash is used by scala/scalac scripts, and it cannot be easily replaced with ash. | |
RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates && \ | |
apk add --no-cache bash curl jq && \ | |
cd "/tmp" && \ | |
wget --no-verbose "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \ | |
tar xzf "scala-${SCALA_VERSION}.tgz" && \ | |
mkdir "${SCALA_HOME}" && \ | |
rm "/tmp/scala-${SCALA_VERSION}/bin/"*.bat && \ | |
mv "/tmp/scala-${SCALA_VERSION}/bin" "/tmp/scala-${SCALA_VERSION}/lib" "${SCALA_HOME}" && \ | |
ln -s "${SCALA_HOME}/bin/"* "/usr/bin/" && \ | |
apk del .build-dependencies && \ | |
rm -rf "/tmp/"* | |
RUN export PATH="/usr/local/sbt/bin:$PATH" && apk update && apk add ca-certificates wget tar && mkdir -p "/usr/local/sbt" && wget -qO - --no-check-certificate "https://cocl.us/sbt-0.13.16.tgz" | tar xz -C /usr/local/sbt --strip-components=1 && sbt sbtVersion | |
#!/usr/bin/env bash | |
export PATH="/usr/local/sbt/bin:$PATH" && apk update && apk add ca-certificates wget tar && mkdir -p "/usr/local/sbt" && wget -qO - --no-check-certificate "https://cocl.us/sbt-0.13.16.tgz" | tar xz -C /usr/local/sbt --strip-components=1 && sbt sbtVersion |
link is broken: https://piccolo.link/sbt-0.13.16.tgz ... @avinayak @gyndav
# NOTE: bash is used by scala/scalac scripts, and it cannot be easily replaced with ash.
What's the minimum version of bash supported (I'd honestly go prefer to go without installing bash but if it's needed I have no choice)?
@gyndav Love this mini code snippets.
Was wondering what it would take to work with you on heetch ?!
@babacarcissedia if it sounds like you, applying to one of our available offers is the thing to do: https://jobs.lever.co/heetch
@gyndav Well I tried it last week but had no luck which is why I’m asking here. I speak french too
@gyndav might not be the best place but I'll just post it here. I own few cars on heetch and as an owner I am trying to get the rides for all my cars filtered by date. do you know a way to achieve that ?
After some investigation I saw https://driver-gw.heetch.com/rides
but this is only returning my rides as a driver but not the one for my other cars.
Please advise.
export PATH="/usr/local/sbt/bin:$PATH" && apk update && apk add ca-certificates wget tar && mkdir -p "/usr/local/sbt" && wget -qO - --no-check-certificate "https://piccolo.link/sbt-0.13.16.tgz" | tar xz -C /usr/local/sbt --strip-components=1 && sbt sbtVersion