-
Notifications
You must be signed in to change notification settings - Fork 370
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
Ubuntu 22.04 #1656
Merged
Merged
Ubuntu 22.04 #1656
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG uid=1000 | ||
ARG user=indy | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# common stuff | ||
git \ | ||
apt-transport-https \ | ||
apt-utils\ | ||
wget\ | ||
curl\ | ||
jq\ | ||
gnupg | ||
|
||
# ======================================================================================================== | ||
# Update repository signing keys | ||
# -------------------------------------------------------------------------------------------------------- | ||
# Hyperledger | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \ | ||
# Sovrin | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 | ||
# ======================================================================================================== | ||
|
||
# Plenum | ||
# - https://github.com/hyperledger/indy-plenum/issues/1546 | ||
# - Needed to pick up rocksdb=5.8.8 | ||
#RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy focal dev" >> /etc/apt/sources.list && \ | ||
# echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list && \ | ||
# echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list | ||
|
||
# TODO change this to official repo | ||
RUN echo "deb [trusted=yes] http://209.141.41.82:8000/ packagedir/" >> /etc/apt/sources.list | ||
|
||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# Python | ||
python3-pip \ | ||
rubygems && \ | ||
gem install --no-document dotenv:2.8.1 fpm:1.15.0 && \ | ||
pip3 install Cython==0.29.36 | ||
|
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
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,30 @@ | ||
### Build indy-plenum using docker | ||
|
||
``` | ||
./build-indy-plenum-docker.sh <path-to-sources> <version> | ||
``` | ||
Built package is placed in a docker volume `indy-plenum-deb-u1604`. | ||
|
||
### Build indy-plenum | ||
|
||
``` | ||
./build-indy-plenum.sh <path to sources> <version> <output-path: default='.'> | ||
``` | ||
|
||
Built package is placed in the `output-path` folder. | ||
|
||
### Build 3rd-party dependencies using docker | ||
|
||
``` | ||
./build-3rd-parties-docker.sh | ||
``` | ||
|
||
Built packages are placed in a docker volume `indy-plenum-deb-u1604`. | ||
|
||
### Build 3rd-party dependencies | ||
|
||
``` | ||
./build-3rd-parties-docker.sh <output-path: default='.'> | ||
``` | ||
|
||
Built packages are placed in the `output-path` folder. |
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -e | ||
|
||
|
||
PKG_SOURCE_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../../ | ||
|
||
if [ -z "$2" ]; then | ||
CMD="/input/build-scripts/ubuntu-2204/build-3rd-parties.sh /output" | ||
else | ||
CMD="$2" | ||
fi | ||
|
||
PKG_NAME=indy-plenum | ||
IMAGE_NAME="${PKG_NAME}-build-u2204" | ||
OUTPUT_VOLUME_NAME="${1:-"${PKG_NAME}-deb-u2204"}" | ||
|
||
docker build -t "${PKG_NAME}-build-u2204" -f $PKG_SOURCE_PATH/.github/workflows/build/Dockerfile.ubuntu-2204 . | ||
docker volume create --name "${OUTPUT_VOLUME_NAME}" | ||
|
||
docker run \ | ||
-i \ | ||
--rm \ | ||
-v "${PKG_SOURCE_PATH}:/input" \ | ||
-v "${OUTPUT_VOLUME_NAME}:/output" \ | ||
"${IMAGE_NAME}" \ | ||
$CMD |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@reflectivedevelopment, Which repo is this?
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.
This is a temporary repo, until we get the jfrog packages installed.