Skip to content

Commit

Permalink
Merge pull request #4 from alfonmga/dockerfile
Browse files Browse the repository at this point in the history
Use Dockerfile to build Pakkero
  • Loading branch information
89luca89 committed Mar 16, 2021
2 parents db93913 + 0801e22 commit 7d3bbc3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:alpine

ENV CGO_ENABLED=0
ENV GO111MODULE=off

RUN apk add --update-cache upx git make binutils coreutils \
&& rm -rf /var/cache/apk/*

RUN upx --version

RUN go version
RUN go get -d -v github.com/89luca89/pakkero

WORKDIR $GOPATH/src/github.com/89luca89/pakkero
RUN make

RUN ./dist/pakkero -v

ENTRYPOINT ["./dist/pakkero"]
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,34 @@ Go build works fine, but will skip a fundamental step in the building process, *

This way the Pakkero binary has inside the source of the Launcher to be used for each packaging.

#### Building using Docker

Build Pakkero image:

```sh
sudo docker build . -t pakkero
```

Run containerized Pakkero:

```sh
sudo docker run -it -v <target_dir>:/ext pakkero --file /ext/<target_elf> -o /ext/<target_elf>.packed
```

#### Building using Podman

Build Pakkero image:

```sh
sudo podman build . -t pakkero
```

Run containerized Pakkero:

```sh
sudo podman run -it -v <target_dir>:/ext pakkero --file /ext/<target_elf> -o /ext/<target_elf>.packed
```

#### Payload

For this purpose the payload is simply compressed using zlib then encrypted using AES256-GCM
Expand Down

0 comments on commit 7d3bbc3

Please sign in to comment.