Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
[Storage-Manager] move apt-get to docker image (#4086)
Browse files Browse the repository at this point in the history
* move apt-get to docker image
  • Loading branch information
Binyang2014 authored Dec 30, 2019
1 parent b3f71ac commit 1201799
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 10 additions & 1 deletion src/storage-manager/build/storage-manager.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ RUN apt-get -y update && \
nfs-common \
netbase \
nfs-kernel-server \
kmod
kmod \
winbind \
libpam-winbind \
libnss-winbind

# Use default config for Kerberos
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
libpam-krb5 \
krb5-config \
krb5-user

ENV SHARE_ROOT=/share/pai

Expand Down
9 changes: 1 addition & 8 deletions src/storage-manager/deploy/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@ cp /etc/pai-config/smb.conf /etc/samba/smb.conf

# install krb5 and join domain
if [[ $SECURETYPE == "ADS" ]]; then
echo "install krb5 ----------"
echo "init krb5 ----------"
cp /etc/pai-config/krb5.conf /etc/krb5.conf
cp /etc/pai-config/nsswitch.conf /etc/nsswitch.conf
apt update && apt install -y \
winbind \
libpam-winbind \
libnss-winbind \
libpam-krb5 \
krb5-config \
krb5-user
echo "join domain ----------"
net ads join -U "$DOMAINUSER"%"$DOMAINPWD"
echo "domain info ----------"
Expand Down

0 comments on commit 1201799

Please sign in to comment.