Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .buildbaselog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* Add date here... Add signature here...
- Add your reason here...

* May 18 2026 <aaron.an@broadcom.com>
- Refresh base image

* Feb 11 2026 <yan-yw.wang@broadcom.com>
- Refresh base image

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
github.ref == 'refs/heads/main'
run: |
set -x
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
docker build -f make/photon/common/Dockerfile -t goharbor/photon:5.0 .
docker push goharbor/photon:5.0
echo "BUILD_BASE=true" >> $GITHUB_ENV
- name: Build Package
run: |
Expand Down
14 changes: 14 additions & 0 deletions make/photon/common/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM photon:5.0

# 1. Install photon-repos package
RUN tdnf install photon-repos -y

# 2. Enable photon-snapshot repo
RUN sed -i 's/enabled\s*=.*/enabled=0/g' /etc/yum.repos.d/*.repo
RUN sed -i 's/enabled\s*=.*/enabled=1/g' /etc/yum.repos.d/photon-snapshot.repo && tdnf clean all

# 2. Use tdnf to disable all default repos, enable only the snapshot, and update/install
# The --disablerepo="*" flag turns off the mainline public repos
# The --enablerepo="photon-snapshot" flag explicitly targets your template
RUN tdnf --disablerepo="*" --enablerepo="photon-snapshot" makecache \
&& tdnf --disablerepo="*" --enablerepo="photon-snapshot" update -y
2 changes: 1 addition & 1 deletion make/photon/core/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y tzdata shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/db/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

ENV PGDATA /var/lib/postgresql/data

Expand Down
2 changes: 1 addition & 1 deletion make/photon/exporter/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y tzdata shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/jobservice/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y tzdata shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/log/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y cronie rsyslog logrotate shadow tar gzip sudo >> /dev/null\
&& mkdir /var/spool/rsyslog \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/nginx/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y nginx shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/portal/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y nginx shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/prepare/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y python3 python3-pip python3-PyYAML python3-jinja2 && tdnf clean all
ARG pip_index_url=https://pypi.org/simple
Expand Down
2 changes: 1 addition & 1 deletion make/photon/registry/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/registryctl/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/trivy-adapter/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y rpm shadow >> /dev/null \
&& tdnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion make/photon/valkey/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM photon:5.0
FROM goharbor/photon:5.0

RUN tdnf install -y shadow >> /dev/null \
&& groupadd -g 999 valkey \
Expand Down
Loading