Skip to content

Commit

Permalink
abuild fix and added docs in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexkey committed Mar 8, 2021
1 parent f18cf70 commit 2f9881b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
# Satoshi Portal, what we did

## Build abuild

```
git clone https://github.com/SatoshiPortal/docker-alpine-abuild.git
cd docker-alpine-abuild/
docker build -t cyphernode/alpine-abuild .
```

## Our keys

```
docker run --name keys --entrypoint abuild-keygen -e PACKAGER="Cyphernode Team <[email protected]>" cyphernode/alpine-abuild -n
mkdir ~/.abuild
docker cp keys:/home/builder/.abuild/[email protected] ~/.abuild/
docker cp keys:/home/builder/.abuild/[email protected] ~/.abuild/
```

## Builder

```
git clone https://github.com/satoshiportal/docker-glibc-builder.git
cd docker-glibc-builder/
docker build -t cyphernode/glibc-builder .
cd ../builder
docker run --name glibc-binary cyphernode/glibc-builder 2.29 /usr/glibc-compat
```

```
docker cp glibc-binary:/glibc-bin-2.29.tar.gz ./
mv glibc-bin-2.29.tar.gz glibc-bin-2.29-0-x86_64.tar.gz
mv glibc-bin-2.29.tar.gz glibc-bin-2.29-0-aarch64.tar.gz
mv glibc-bin-2.29.tar.gz glibc-bin-2.29-0-armhf.tar.gz
docker rm glibc-binary
```

## Packager

```
git clone https://github.com/satoshiportal/alpine-pkg-glibc
cd alpine-pkg-glibc/
./package.sh
```


# alpine-pkg-glibc

[![CircleCI](https://circleci.com/gh/sgerrand/alpine-pkg-glibc/tree/master.svg?style=svg)](https://circleci.com/gh/sgerrand/alpine-pkg-glibc/tree/master) ![x86_64](https://img.shields.io/badge/x86__64-supported-brightgreen.svg)
Expand Down
9 changes: 8 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ docker rm -f input
docker create --name input --volume /home/builder/package alpine:3.9 /bin/true
docker cp . input:/home/builder/package/

docker run --volumes-from input --volume $(pwd)/ssh.rsa:/home/builder/ssh.rsa --volume $(pwd)/apk:/packages cyphernode/alpine-abuild
docker run -it --volumes-from input \
-e RSA_PRIVATE_KEY_NAME="[email protected]" \
-e PACKAGER="Cyphernode Team <[email protected]>" \
-e PACKAGER_PRIVKEY="/home/builder/.abuild/[email protected]" \
-v "$HOME/.abuild:/home/builder/.abuild" \
-v "$HOME/.abuild/packages:/packages" \
-v "$HOME/.abuild/[email protected]:/etc/apk/keys/[email protected]" \
cyphernode/alpine-abuild

0 comments on commit 2f9881b

Please sign in to comment.