Created
November 20, 2022 15:12
-
-
Save u110/41e18aa00d3ef401cc39da50409926de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://twitter.com/hiroysato/status/1339925551167893504 | |
FROM openjdk:8-slim | |
ENV LANG=C.UTF-8 \ | |
PATH_TO_EMBULK=/opt/embulk \ | |
PATH=${PATH}:/opt/embulk | |
# Change timezone | |
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
RUN apt-get update && apt-get install -y curl vim | |
# Embulk install | |
RUN mkdir -p ${PATH_TO_EMBULK} \ | |
&& curl --create-dirs -o ${PATH_TO_EMBULK}/embulk -L "https://dl.embulk.org/embulk-0.10.25.jar" \ | |
&& chmod +x ${PATH_TO_EMBULK}/embulk | |
ENV PATH_TO_JRUBY=/opt/jruby \ | |
PATH=${PATH}:/opt/jruby | |
# JRuby | |
RUN mkdir -p ${PATH_TO_JRUBY} \ | |
&& curl \ | |
--create-dirs -o ${PATH_TO_JRUBY}/jruby.jar \ | |
-L "https://repo1.maven.org/maven2/org/jruby/jruby-complete/9.3.9.0/jruby-complete-9.3.9.0.jar" | |
# $ cat embulk.properties | |
# jruby=file:///opt/jruby/jruby.jar | |
COPY embulk.properties /root/.embulk/embulk.properties | |
RUN embulk gem install msgpack bundler liquid embulk-output-bigquery | |
WORKDIR /app | |
CMD [ "bash" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment