This commit is contained in:
parent
e07ebb87cb
commit
9cbb233f64
|
@ -6,7 +6,7 @@ RUN useradd -m -s /bin/bash dmdba \
|
||||||
&& echo "dmdba:123456" | chpasswd \
|
&& echo "dmdba:123456" | chpasswd \
|
||||||
&& apt-get -y update \
|
&& apt-get -y update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
p7zip-full unzip wget \
|
p7zip-full unzip wget sudo \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
||||||
WORKDIR /home/dmdba
|
WORKDIR /home/dmdba
|
||||||
|
@ -19,6 +19,7 @@ RUN wget https://download.dameng.com/eco/adapter/DM8/202405/dm8_20240408_x86_rh7
|
||||||
&& 7z x dm8_20240408_x86_rh7_64.iso \
|
&& 7z x dm8_20240408_x86_rh7_64.iso \
|
||||||
&& rm -f dm8_20240408_x86_rh7_64.iso \
|
&& rm -f dm8_20240408_x86_rh7_64.iso \
|
||||||
&& chmod +x DMInstall.bin \
|
&& chmod +x DMInstall.bin \
|
||||||
&& apt-get remove -y p7zip-full unzip wget
|
&& apt-get remove -y p7zip-full unzip wget \
|
||||||
|
&& usermod -aG sudo dmdba
|
||||||
USER dmdba
|
USER dmdba
|
||||||
CMD ["/bin/bash", "-e"]
|
CMD ["/bin/bash", "-e"]
|
|
@ -17,8 +17,8 @@ spec:
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: '0.2'
|
cpu: '0.5'
|
||||||
memory: 0.3Gi
|
memory: 0.5Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: '0.1'
|
cpu: '0.3'
|
||||||
memory: 0.2Gi
|
memory: 0.3Gi
|
|
@ -15,8 +15,8 @@ spec:
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: '0.2'
|
cpu: '0.5'
|
||||||
memory: 0.3Gi
|
memory: 0.5Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: '0.1'
|
cpu: '0.3'
|
||||||
memory: 0.2Gi
|
memory: 0.3Gi
|
Loading…
Reference in New Issue