-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add templating for the config files when using migration mode * add migration setting to systemd * add ubuntu focal and jammy as seperate dockerfiles * update workflow file * change default config folder * change babylon default ledger folder * add gateway behaviour to systemd * add migration and gateway settings to config output * fix workflow syntax * update workflow to specify config directory * minor bugfixes regarding usability and templating * fix unit test bugs * fix bug where the release would try to write both ubuntu versions to the same release file
- Loading branch information
Kim Fehrs
authored
Jul 27, 2023
1 parent
834ed60
commit 07d6b38
Showing
29 changed files
with
356 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,16 +67,27 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build the binary for ubuntu | ||
- name: Build the binary for ubuntu jammy | ||
run: | | ||
cd node-runner-cli | ||
make output-ubuntu-focal | ||
make output-ubuntu-jammy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: "Upload generated cli file" | ||
uses: actions/[email protected] | ||
with: | ||
name: ubuntu 22.04 | ||
path: "${{ github.workspace }}/node-runner-cli/out/ubuntu/jammy/radixnode" | ||
- name: Build the binary for ubuntu focal | ||
run: | | ||
cd node-runner-cli | ||
make output-ubuntu-focal | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: "Upload generated cli file" | ||
uses: actions/[email protected] | ||
with: | ||
name: ubuntu 20.04 | ||
path: "${{ github.workspace }}/node-runner-cli/out/ubuntu/focal/radixnode" | ||
|
||
upload-asset-store: | ||
|
@@ -119,7 +130,7 @@ jobs: | |
ls */** | ||
aws s3 cp radixnode s3://${{secrets.ARTIFACT_AWS_BUCKET }}/radixnode/${{env.BRANCH_WITH_COMMIT}}/radixnode-ubuntu-22.04 | ||
upload-release: | ||
upload-release-jammy: | ||
runs-on: ubuntu-22.04 | ||
if: ${{ github.event_name == 'release' }} | ||
needs: | ||
|
@@ -129,20 +140,35 @@ jobs: | |
uses: actions/download-artifact@v3 | ||
with: | ||
name: ubuntu 22.04 | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
- name: Upload radixcli ubuntu binary | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./radixnode | ||
asset_name: radixnode-ubuntu-22.04 | ||
asset_content_type: application/octet-stream | ||
if: ${{ github.event_name == 'release' }} | ||
|
||
upload-release-focal: | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.event_name == 'release' }} | ||
needs: | ||
- package_ubuntu_cli | ||
steps: | ||
- name: Download packaged cli | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ubuntu 20.04 | ||
- name: Upload radixcli ubuntu binary | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./radixnode | ||
asset_name: radixnode-ubuntu-22.04 | ||
asset_name: radixnode-ubuntu-20.04 | ||
asset_content_type: application/octet-stream | ||
if: ${{ github.event_name == 'release' }} | ||
|
||
|
@@ -248,6 +274,7 @@ jobs: | |
echo "PATH=$PWD" | ||
export PROMPT_FEEDS="node-runner-cli/test-prompts/core-gateway-all-local.yml" | ||
./radixnode docker config -m DETAILED \ | ||
-d $HOME/node-config \ | ||
-k $KEYSTORE_PASSWORD -nk -a | ||
env: | ||
KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
@@ -260,6 +287,7 @@ jobs: | |
chmod +x ./radixnode | ||
export PROMPT_FEEDS="node-runner-cli/test-prompts/corenode-01.yml" | ||
./radixnode docker config -m DETAILED \ | ||
-d $HOME/node-config \ | ||
-k $KEYSTORE_PASSWORD -nk -a | ||
env: | ||
KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
@@ -271,6 +299,7 @@ jobs: | |
ls -a | ||
export PROMPT_FEEDS="node-runner-cli/test-prompts/corenode-02.yml" | ||
./radixnode docker config -m DETAILED \ | ||
-d $HOME/node-config \ | ||
-k $KEYSTORE_PASSWORD -nk -a | ||
env: | ||
KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
@@ -283,6 +312,7 @@ jobs: | |
# ls -a | ||
# export PROMPT_FEEDS="node-runner-cli/test-prompts/gateway-remote-core-local-postgress.yml" | ||
# ./radixnode docker config -m DETAILED \ | ||
# -d $HOME/node-config \ | ||
# -k $KEYSTORE_PASSWORD -nk -a | ||
# env: | ||
# KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
@@ -293,6 +323,7 @@ jobs: | |
# ls -a | ||
# export PROMPT_FEEDS="node-runner-cli/test-prompts/gateway-remote-core-remote-postgress.yml" | ||
# ./radixnode docker config -m DETAILED \ | ||
# -d $HOME/node-config \ | ||
# -k $KEYSTORE_PASSWORD -nk -a | ||
# env: | ||
# KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
@@ -331,6 +362,7 @@ jobs: | |
export DOCKER_COMPOSE_LOCATION="/usr/local/bin/docker-compose" | ||
export PROMPT_FEEDS="node-runner-cli/test-prompts/core-gateway-all-local.yml" | ||
./radixnode docker config -m DETAILED \ | ||
-d $HOME/node-config \ | ||
-k $KEYSTORE_PASSWORD -nk -a | ||
env: | ||
KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ubuntu:22.04 as BUILD | ||
FROM ubuntu:20.04 as BUILD | ||
MAINTAINER radixdlt <[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PYTHON_VERSION 3.10.6 | ||
ENV PYTHON_VERSION 3.7.6 | ||
|
||
CMD /bin/bash | ||
|
||
|
@@ -22,11 +22,11 @@ RUN set -ex \ | |
&& pyenv update | ||
|
||
|
||
RUN CONFIGURE_OPTS=--enable-shared pyenv install 3.10.6 | ||
RUN CONFIGURE_OPTS=--enable-shared pyenv install 3.7.6 | ||
|
||
|
||
|
||
RUN pyenv virtualenv 3.10.6 nodecli | ||
RUN pyenv virtualenv 3.7.6 nodecli | ||
RUN pyenv local nodecli | ||
RUN pip install pyinstaller==4.10 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM ubuntu:22.04 as BUILD | ||
MAINTAINER radixdlt <[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PYTHON_VERSION 3.10.6 | ||
|
||
CMD /bin/bash | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends make build-essential libssl-dev zlib1g-dev \ | ||
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ | ||
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev ca-certificates git > /dev/null | ||
|
||
|
||
|
||
ENV PYENV_ROOT /root/.pyenv | ||
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH | ||
|
||
# Install pyenv | ||
RUN set -ex \ | ||
&& curl https://pyenv.run | bash \ | ||
&& pyenv update | ||
|
||
|
||
RUN CONFIGURE_OPTS=--enable-shared pyenv install 3.10.6 | ||
|
||
|
||
|
||
RUN pyenv virtualenv 3.10.6 nodecli | ||
RUN pyenv local nodecli | ||
RUN pip install pyinstaller==4.10 | ||
|
||
WORKDIR /app | ||
COPY requirements.txt /app/requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /app | ||
RUN pyinstaller --onefile --windowed radixnode.spec | ||
|
||
RUN DISABLE_VERSION_CHECK=true /app/dist/radixnode version | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=BUILD /app/dist / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.