Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*/build/
/build/
out/

Expand Down
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM openjdk:8-jdk

RUN apt-get update -qq && \
apt-get upgrade -y && \
apt-get install -y ruby-full gcc make openjfx

RUN gem install debase-ruby_core_source
RUN gem install arg_scanner

RUN mkdir /app
WORKDIR /app
ENV PATH="./bin:${PATH}"
ADD . /app

# This was added in an attempt to get logging working. It didn't help, so it has been commented out.
#RUN apt-get install -y curl
#RUN curl -s https://www.slf4j.org/dist/slf4j-1.7.25.tar.gz | tar zxvf - slf4j-1.7.25/slf4j-simple-1.7.25.jar
#RUN mv slf4j-1.7.25/slf4j-simple-1.7.25.jar /usr/lib
#ENV CLASSPATH=.:/usr/lib/slf4j-simple-1.7.25.jar

CMD ["./gradlew","contract-creator:runServer"]

# Build the container:
# docker build -t jet_brains:ruby_type_inference .
# Run the server:
# docker run -v ${PWD}:/app -it jet_brains:ruby_type_inference
# Drop into bash shell
# docker run -v ${PWD}:/app -it jet_brains:ruby_type_inference bash