Skip to content

Commit

Permalink
Add linux support and linux builder Docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
kadircancetin committed Sep 25, 2022
1 parent 2827194 commit 3870d96
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM golang:1.18

# Clone go algorand
RUN mkdir -p "/Users/fergal/"
WORKDIR "/Users/fergal/"
RUN git clone https://github.com/algorand/go-algorand.git

# Checkout v3.8.1
WORKDIR "/Users/fergal/go-algorand/"
RUN git checkout v3.8.1-stable

# run algo node builds
RUN ./scripts/configure_dev.sh
RUN ./scripts/buildtools/install_buildtools.sh
RUN make install

# Run on host machine:
# ====================
# ```
# docker build -t local/algojig .;
# docker run -v $(pwd):/algojig -ti local/algojig /bin/bash -c "cd /algojig/gojig; go build -o ../algojig/algojig_linux_x86_64";
# ```
File renamed without changes.
File renamed without changes.
Binary file added algojig/algojig_linux_x86_64
Binary file not shown.
5 changes: 3 additions & 2 deletions algojig/gojig.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

import algojig

machine = platform.machine()
binary = f'algojig_{machine}'
machine = platform.machine().lower()
system = platform.system().lower()
binary = f'algojig_{system}_{machine}'


def run(command, *args, input=None):
Expand Down

0 comments on commit 3870d96

Please sign in to comment.