Skip to content

Commit

Permalink
feat: update base image
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiwi committed Feb 22, 2024
1 parent af69ca8 commit 21deffb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: elkiwi/samba-ad-dc:latest
tags: elkiwi/samba-ad-dc:v1.0.0
platforms: linux/arm64,linux/amd64
file: "Dockerfile"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:impish
FROM ubuntu:noble

ARG version
ARG build_date
Expand All @@ -16,7 +16,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get clean && apt-get update && \
apt-get install -y attr acl samba smbclient samba-vfs-modules winbind libnss-winbind libpam-winbind \
openssl
RUN apt-get install -y ldap-utils ldb-tools cifs-utils smbldap-tools
RUN apt-get install -y ldap-utils ldb-tools cifs-utils smbldap-tools
# tools for debugging
RUN apt-get install -y vim bind9-host krb5-user iputils-ping iproute2
RUN apt-get autoclean && \
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ docker build \
--build-arg "version=$version" \
--build-arg "build_date=$build_date" \
-t $gituser/docker-samba-ad-dc:${samba_version} .
docker tag $gituser/docker-samba-ad-dc:${samba_version} $gituser/docker-samba-ad-ac:latest
docker tag $gituser/docker-samba-ad-dc:${samba_version} $gituser/docker-samba-ad-ac:"v1.0.0"
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ EOF
# now join the domain
if [ $RC -eq 0 ]; then
echo -e "${GR} ************************************"
echo -e "${GR} JOINING DOMAIN ${SAMBA_DC_REALM} now"
echo -e "${GR} JOINING DOMAIN ${SAMBA_DC_REALM} now"
echo -e "${GR} ************************************"
samba-tool domain join ${SAMBA_DC_REALM} DC -k yes
fi
fi

if [ "${SAMBA_DNS_FORWARDER}" != "NONE" ]; then
sed -i "/\[global\]/a \
\\\tdns forwarder = ${SAMBA_DNSFORWARDER}\
\\\tdns forwarder = ${SAMBA_DNS_FORWARDER}\
" /etc/samba/smb.conf
fi
fi
Expand Down

0 comments on commit 21deffb

Please sign in to comment.