-
Notifications
You must be signed in to change notification settings - Fork 7
/
dockerfile
52 lines (40 loc) · 1.01 KB
/
dockerfile
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
48
49
50
51
52
FROM centos:latest
MAINTAINER @steveAGRC <sgourley@utah.gov>
# set up environment variables
ENV USER arcgis
ENV GROUP arcgis
# install server packages
RUN yum -y --nogpg install xorg-x11-server-Xvfb.x86_64 \
fontconfig \
freetype \
gettext \
less \
htop \
vim \
mesa-libGLU \
libXtst \
libXi \
libXrender \
net-tools
# copy files to arcgis location
RUN mkdir /arcgis
ADD ags.tar.gz /arcgis/
COPY authorize-and-start.sh /arcgis/
# set up permissions
RUN groupadd $GROUP
RUN useradd -m -r $USER -g $GROUP
RUN chown -R $USER:$GROUP /arcgis
RUN chmod -R 755 /arcgis
USER $USER
# install arcgis
RUN /arcgis/ArcGISServer/Setup -m silent -l yes -d /
# clean up install
RUN rm -rf /ArcGISServer
# set volumes up for provising file and directories
VOLUME /license
VOLUME /arcgis/server/usr/directories
VOLUME /arcgis/server/usr/config-store
# open ports
EXPOSE 6080 6443 4001 4002 4004
# start the server
ENTRYPOINT /arcgis/authorize-and-start.sh && /bin/bash