This commit is contained in:
wang 2024-07-04 18:27:13 +08:00
parent e07ebb87cb
commit 9cbb233f64
3 changed files with 11 additions and 10 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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