-
Notifications
You must be signed in to change notification settings - Fork 17
Leap/CDT versioning, dynamic updates and packages #75
Conversation
f8ffc32
to
d79fdd1
Compare
Scripts should work from any directory. We can accomplish this with this code, for example: SCRIPT=`readlink -f "$0"`
DIR=`dirname "$SCRIPT"` |
In |
This information: docker tag dune ghcr.io/antelopeio/dune:latest
docker push ghcr.io/antelopeio/dune:latest
docker tag dune ghcr.io/antelopeio/dune:X.Y.Z
docker push ghcr.io/antelopeio/dune:X.Y.Z Should go into |
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.
See comments in changed files.
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.
See comments.
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.
lgtm
5a12115
to
0de4097
Compare
Thanks @ScottBailey.
|
packaging/generate_package.sh
Outdated
mkdir -p tmp | ||
|
||
if [[ ${VARIANT} == "brew" ]]; then | ||
. "$DIR"./generate_bottle.sh |
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.
after I fixed manually path, I've got this error:
./generate_package.sh brew Error, unsupported OS X version
I have Monterey 12.6 was it intended?
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 copied the scripts from CDT. After checking it seems that supported macOS versions are quite old.
We need to update the scripts. I have created new issue for it: #92
@dimas1185 I have moved MacOS packaging to separate issue (#92) so the current PR is not blocked. |
Example command to build a DUNE image with specific versions: docker build --no-cache --build-arg USER_ID=0 --build-arg GROUP_ID=0 --build-arg CDT_VERSION=3.1.0-rc1 --build-arg LEAP_VERSION=3.2.0 -f Dockerfile.unix -t dune Alternatively run bootstrap.sh script with arguments, i.e. ./bootstrap.sh --leap=3.2.0 --cdt=3.1.0-rc1
Add prefix to package name because of a conflict with package "dune" from ocaml
…n by default in Ubuntu 20.
Add --version-all
14be988
to
dc977df
Compare
Moved out macOS packaging to separate issue: #92
I have added documentation how to install DUNE (without need of
git clone
) *.deb package:https://github.com/AntelopeIO/DUNE/blob/710132b73b1123957fcaff66a7e826737ad7f9b4/README.md#Binary-Installation-on-Linux
Dune scripts are installed to /usr/opt/DUNE/.
Dune image is downloaded just before creation of the first container.
New functionalities:
./generate_package.sh deb ubuntu amd64
dune --upgrade
dune --cdt <version>
dune --leap <version>
bootstrap.sh
script with below arguments, i.e../bootstrap.sh --leap=3.2.0 --cdt=3.1.0-rc1
MacOS packaging is separate task: #92
RPM and Chocolatey are separate task: #91
The example command that builds DUNE image with specific CDT/leap version:
docker build --no-cache --build-arg USER_ID=0 --build-arg GROUP_ID=0 --build-arg CDT_VERSION=3.1.0-rc1 --build-arg LEAP_VERSION=3.2.0 -f Dockerfile.unix -t dune
How to push out new DUNE image?
Added documentation https://github.com/AntelopeIO/DUNE/pull/75/files#diff-9c4ae3b5f6675180493e9a1a817baabf4c5314870a3fa67c9c6ab89186046a91
To do after this PR is merged: