Skip to content
Snippets Groups Projects
Commit 29d9d7d7 authored by lennart's avatar lennart
Browse files

Create accounts, less maxima/sbcl versions

parent 4c5f5ec1
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ RUN cd ${SRC} \ ...@@ -56,7 +56,7 @@ RUN cd ${SRC} \
&& make clean && make clean
RUN rm -r ${SRC} /SBCL_ARCH RUN rm -r ${SRC} /SBCL_ARCH
RUN apt install -y gnuplot gettext-base RUN apt-get install -y gnuplot gettext-base sudo psmisc
RUN mkdir -p ${LIB} ${LOG} ${TMP} ${PLOT} ${ASSETS} ${BIN} RUN mkdir -p ${LIB} ${LOG} ${TMP} ${PLOT} ${ASSETS} ${BIN}
...@@ -72,12 +72,21 @@ RUN grep stackmaximaversion ${LIB}/stackmaxima.mac | grep -oP "\d+" >> /opt/maxi ...@@ -72,12 +72,21 @@ RUN grep stackmaximaversion ${LIB}/stackmaxima.mac | grep -oP "\d+" >> /opt/maxi
&& cat ${ASSETS}/maximalocal.mac && cat ${ASSETS}/optimize.mac \ && cat ${ASSETS}/maximalocal.mac && cat ${ASSETS}/optimize.mac \
&& cd ${ASSETS} \ && cd ${ASSETS} \
&& maxima -b optimize.mac \ && maxima -b optimize.mac \
&& mv maxima-optimised ${BIN}/maxima-optimised \ && mv maxima-optimised ${BIN}/maxima-optimised
&& rm -r ${LIB}
RUN apt-get purge -y wget python3 make bzip2 texinfo RUN apt-get purge -y wget python3 make bzip2 texinfo
RUN useradd -M maxima-server && echo "Defaults lecture = always" > /etc/sudoers.d/maxima
RUN for i in $(seq 16); do \
useradd -M "maxima-$i" \
&& echo "maxima-server ALL = (maxima-$i) NOPASSWD: ${BIN}/wrapper" >> /etc/sudoers.d/maxima \
&& echo "maxima-server ALL = (root) NOPASSWD: /usr/bin/killall -9 -u maxima-$i" >> /etc/sudoers.d/maxima; \
done
# Add go webserver # Add go webserver
COPY ./bin/web ${BIN}/goweb COPY ./bin/web ${BIN}/goweb
CMD ["/opt/maxima/bin/goweb"] # Add wrapper
COPY ./bin/wrapper ${BIN}/wrapper
CMD ["su", "-c", "/opt/maxima/bin/goweb", "maxima-server"]
No preview for this file type
5.43.2 5.43.2
5.43.1
5.43.0
5.42.2
5.42.1
5.42.0
5.41.0
5.40.0
5.39.0
2.0.2 2.0.2
1.4.11
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment