-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (40 loc) · 1.44 KB
/
Dockerfile
File metadata and controls
47 lines (40 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
######################################
# Based on Ubuntu image
######################################
FROM ubuntu:18.04
######################################
# Basic project infos
######################################
LABEL maintainer="Christophe Vaugelade"
######################################
# Update Ubuntu apt and install some tools
######################################
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y git \
&& apt-get install -y unzip \
&& rm -rf /var/lib/apt/lists/*
######################################
# Have an own directory for the tool
######################################
RUN mkdir pharo
VOLUME /pharo
WORKDIR /pharo
######################################
# Download Pharo using Zeroconf & start script
######################################
RUN echo "* hard rtprio 2" >> /etc/security/limits.d/pharo.conf
RUN echo "* soft rtprio 2" >> /etc/security/limits.d/pharo.conf
#RUN wget -O- https://get.pharo.org/64/70+vm | bash
#RUN wget -O- https://get.pharo.org/64/stable | bash
#COPY load.st load.st
#RUN ./pharo Pharo.image load.st
######################################
# Expose port 8080 of Zinc outside the container
######################################
EXPOSE 8080
EXPOSE 40423
######################################
# Finally run headless as server
######################################
CMD ./pharo --headless Pharo.image remotePharo --startServerOnPort=40423 --no-quit