Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtains latest Unifi Network Controller published in Debian stable repository #530

Closed
wants to merge 1 commit into from
Closed
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: 2 additions & 1 deletion unifi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ RUN \
mongodb-server=1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3 \
openjdk-17-jre-headless=17* \
\
&& unifi_latest_version=$(curl -s "https://dl.ui.com/unifi/debian/dists/stable/ubiquiti/binary-amd64/Packages" | grep "Version" | sed 's/Version: //')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, for the suggestion, but this doesn't fit.

The problem with this, is that nothing will be able to detect the change; For example, Docker caches won't bust.

../Frenck

&& curl -J -L -o /tmp/unifi.deb \
"https://dl.ui.com/unifi/8.5.6/unifi_sysvinit_all.deb" \
"https://dl.ui.com/unifi/debian/pool/ubiquiti/u/unifi/unifi_${unifi_latest_version}_all.deb" \
\
&& dpkg --install /tmp/unifi.deb \
&& apt-get clean \
Expand Down
Loading