update limits
This commit is contained in:
parent
af5a4f7cee
commit
548e69d3f3
|
@ -11,8 +11,10 @@ RUN apt-get -y install golang
|
|||
|
||||
RUN useradd -m runner
|
||||
|
||||
RUN echo '@runner soft nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo '@runner hard nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner soft nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner hard nproc 16' >> /etc/security/limits.conf
|
||||
RUN echo 'runner soft nofile 128' >> /etc/security/limits.conf
|
||||
RUN echo 'runner hard nofile 128' >> /etc/security/limits.conf
|
||||
|
||||
USER runner
|
||||
WORKDIR /tmp
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Piston
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Environment=PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||
WorkingDirectory=/root/piston/api
|
||||
ExecStart=/root/piston/api/start
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue