Closed MarkusMcNugen closed 6 years ago
I did this for my fork of your container and figured Id help a fellow Docker enthusiast out
I used to do that way, and some of the dependencies changed, and the build will fail.
So I use the manual way to specific the version number instead.
You can check this out: https://github.com/TommyLau/docker-ocserv/commit/f794311869002d5e546223ec448e2377bff3261c
Still thinking whether should make it automatically or not, as the config file is also changed from version to version.
Good point. You are right about the config, and youve inspired me to setup my fork of your container a different way. Rather than including a default config that is version specific Im going to copy the default config to my containers /config volume and edit it with sed to match my default configuration. Im already using sed to modify the config based on environmental variables so that cuts out the configuration changing issue for the most part.
Use curl, grep, and awk on the ocserv websites changelog to automatically grab the latest version of ocserv when container is built.