https://github.com/jacobweinstock/scale17x
Scale17x Talk - Two Binaries are Better than one? Building Golang and Python Static Binaries
https://github.com/jacobweinstock/scale17x
go golang python python-3
Last synced: 27 days ago
JSON representation
Scale17x Talk - Two Binaries are Better than one? Building Golang and Python Static Binaries
- Host: GitHub
- URL: https://github.com/jacobweinstock/scale17x
- Owner: jacobweinstock
- License: mit
- Created: 2019-01-18T04:21:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T06:57:12.000Z (over 7 years ago)
- Last Synced: 2025-10-24T08:16:42.987Z (8 months ago)
- Topics: go, golang, python, python-3
- Language: Go
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scale17x Talk - Two Binaries are Better than one?
`Building Golang and Python Static Binaries`
This repo is the boilerplate for building a Golang Binary with an embedded static python binary. Talk Slides can be found [here](https://docs.google.com/presentation/d/1Wf9dZk0k2kirI-wVTijdQ-hy0P1kKkrzK6TDAFsw7Ek/edit?usp=sharing).
## Requirements
### Darwin Builds
* GO 1.11 (`go mod`)
* make
* python3
* [pyinstaller](https://pyinstaller.readthedocs.io/en/v3.3.1/operating-mode.html)
* [fileb0x](https://github.com/UnnoTed/fileb0x)
### Linux Builds
* make
* docker
## Usage
```bash
Makefile Help
make [targets...]
Targets:
build-linux: Build Both the Golang and Python Binaries (Platform: Linux)
build-linux-python: Build the Python Binary (Platform: Linux)
build-linux-golang: Build the Golang Binary (Platform: Linux)
runtime-linux: Docker Container to run Built Linux Binaries
build-darwin: Build Both the Golang and Python Binaries (Platform: Darwin)
build-darwin-python: Build the Python Binary (Platform: Darwin)
build-darwin-golang: Build the Golang Binary (Platform: Darwin)
clean: Clean the bin directory
```
## Diagram
