Skip to content

Commit

Permalink
Merge pull request #3125 from nickanderson/docker-fixups
Browse files Browse the repository at this point in the history
Docker fixups
  • Loading branch information
nickanderson authored Nov 22, 2023
2 parents e6b0898 + 6aa0420 commit 17ff391
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 3 additions & 4 deletions generator/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ You will need to have the following repos checked out:
* enterprise (used for changelog)
* masterfiles (used to document masterfies)
* documentation
* documentation/generator (this repo)

Usage
-----

If you have buildah installed:

1. clone the above repos
1. clone the above repos (run `clone.sh`)

2. export the following env variables:

Expand All @@ -30,11 +29,11 @@ If you have buildah installed:

* `$PACKAGE_JOB` - where to take CFEngine HUB package from,
a dir at http://buildcache.cloud.cfengine.com/packages/,
usually testing-pr
usually `testing-pr`

* `$PACKAGE_UPLOAD_DIRECTORY` - where to take CFEngine HUB package from,
a dir at http://buildcache.cloud.cfengine.com/packages/testing-pr/,
for example, jenkins-master-nightly-pipeline-943
for example, `jenkins-master-nightly-pipeline-943`

* `$PACKAGE_BUILD` - RELEASE of the build to be downloaded, usually 1

Expand Down
5 changes: 5 additions & 0 deletions generator/build/clone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

for repo in core nova enterprise masterfiles documentation; do
git clone "[email protected]:cfengine/$repo.git"
done
2 changes: 1 addition & 1 deletion generator/build/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ gem install jekyll-asset-pipeline --version 0.1.6
gem install closure-compiler --version 1.1.8
gem install yui-compressor --version 0.9.6
gem install albino --version 1.3.3
gem install execjs --version 1.4.0
gem install redcarpet --version 2.2.2
gem install uglifier --version 1.3.0
gem install execjs --version 1.4.0
gem install sanitize --version 2.0.3

cat > /tmp/jekyll-0.12.1-cfengine.patch <<EOF
Expand Down
4 changes: 2 additions & 2 deletions generator/build/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export PACKAGE_UPLOAD_DIRECTORY=$3
export PACKAGE_BUILD=$4

export JOB_TO_UPLOAD=$PACKAGE_JOB
export FLAG_FILE_URL="http://buildcache.cfengine.com/packages/$PACKAGE_JOB/$PACKAGE_UPLOAD_DIRECTORY/PACKAGES_HUB_x86_64_linux_ubuntu_18/core-commitID"
export FLAG_FILE_URL="http://buildcache.cfengine.com/packages/$PACKAGE_JOB/$PACKAGE_UPLOAD_DIRECTORY/PACKAGES_HUB_x86_64_linux_ubuntu_22/core-commitID"
export NO_OUTPUT_DIR=1

env
Expand Down Expand Up @@ -74,7 +74,7 @@ done
wget -O- $FLAG_FILE_URL

echo "Detecting version"
HUB_DIR_NAME=PACKAGES_HUB_x86_64_linux_ubuntu_18
HUB_DIR_NAME=PACKAGES_HUB_x86_64_linux_ubuntu_22
HUB_DIR_URL="http://buildcache.cfengine.com/packages/$PACKAGE_JOB/$PACKAGE_UPLOAD_DIRECTORY/$HUB_DIR_NAME/"
HUB_PACKAGE_NAME="$(wget $HUB_DIR_URL -O- | sed '/deb/!d;s/.*"\([^"]*\.deb\)".*/\1/')"

Expand Down

0 comments on commit 17ff391

Please sign in to comment.