-
Notifications
You must be signed in to change notification settings - Fork 17
feat: use openvox repo instead single deb files #3
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
Conversation
ADD https://apt.overlookinfratech.com/openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb / | ||
RUN apt-get update && \ | ||
apt-get install -y ca-certificates && \ | ||
dpkg -i /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb && \ | ||
rm /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have this in 2 commands, won't this end up in a layer that is still shipped to the end user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. this was more like a test if i can somehow cache this layer in build time... but it does not.
apt-get install -y openvox-agent=${OPENVOXAGENT_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get install -y openvox-server=${OPENVOXSERVER_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | ||
apt-get install -y openvoxdb-termini=${OPENVOXDB_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to specify the exact package name like this? By hardcoding -1
you're making sure you can't use releases to patch small things. Also, probably better to run it in a single apt-get install
command. The server can pull in a different agent version and might up-/downgrade it this way. I suspect that with a single command it'll refuse to run instead. You can probably even combine it with $PACKAGES
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know how to better pin the version. i tried package=version but this didnt work until i added the rest :(.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some experimentation tells me apt install openvox-agent=8.11.0-*
works for me so I think this should work:
apt-get install -y openvox-agent=${OPENVOXAGENT_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | |
apt-get install -y openvox-server=${OPENVOXSERVER_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | |
apt-get install -y openvoxdb-termini=${OPENVOXDB_VERSION}-1+ubuntu${UBUNTU_VERSION} && \ | |
apt-get install -y openvox-agent=${OPENVOXAGENT_VERSION}-* openvox-server=${OPENVOXSERVER_VERSION}-* openvoxdb-termini=${OPENVOXDB_VERSION}-* && \ |
ADD https://apt.overlookinfratech.com/openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb / | ||
RUN apt-get update && \ | ||
apt-get install -y ca-certificates && \ | ||
dpkg -i /openvox${OPENVOX_RELEASE}-release-ubuntu${UBUNTU_VERSION}.deb && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apt can install local files just fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh okay didnt know... will try that. is it like in yum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of, I'd say yum does it a little better because you can also point it to http(s) URLs. With apt you need to get it somehow (like wget) and the use apt install /path/to/file.deb
. You can't use a relative path so you must use ./file.deb
if it's in the current directory.
And I missed that you already merged it when I was reviewing. |
sry, auto merge was on... |
No description provided.