-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
|
||
FROM centos:centos6 | ||
|
||
MAINTAINER [email protected] | ||
|
||
######################################### | ||
## CONSTANTS ## | ||
######################################### | ||
# path for Network Licence Manager | ||
ARG NLM_URL=http://download.autodesk.com/us/support/files/network_license_manager/11_13_1_2_v2/Linux/nlm11.13.1.2_ipv4_ipv6_linux64.tar.gz | ||
# path for temporary files | ||
ARG TEMP_PATH=/tmp/flexnetserver | ||
|
||
EXPOSE 2080 | ||
EXPOSE 27000-27009 | ||
######################################### | ||
## ENVIRONMENTAL CONFIG ## | ||
######################################### | ||
# add the flexlm commands to $PATH | ||
ENV PATH="${PATH}:/opt/flexnetserver/" | ||
|
||
# Ideally this list of dependancies will be trimmed down | ||
######################################### | ||
## RUN INSTALL SCRIPT ## | ||
######################################### | ||
ADD /files /usr/local/bin | ||
|
||
# ideally redhat-lsb could be trimmed down | ||
RUN yum update -y && yum install -y \ | ||
redhat-lsb \ | ||
wget && \ | ||
|
@@ -24,15 +35,19 @@ RUN mkdir -p ${TEMP_PATH} && cd ${TEMP_PATH} && \ | |
RUN groupadd -r lmadmin && \ | ||
useradd -r -g lmadmin lmadmin | ||
|
||
######################################### | ||
## VOLUMES ## | ||
######################################### | ||
VOLUME ["/var/flexlm"] | ||
|
||
# add the flexlm commands to $PATH | ||
ENV PATH="${PATH}:/opt/flexnetserver/" | ||
######################################### | ||
## EXPOSE PORTS ## | ||
######################################### | ||
EXPOSE 2080 | ||
EXPOSE 27000-27009 | ||
|
||
# do not use ROOT user | ||
USER lmadmin | ||
|
||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
COPY utils.sh /usr/local/bin/utils.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
# no CMD, use container as if 'lmgrd' |
File renamed without changes.
File renamed without changes.