L4fame Build Container
This repository contains a bash script and Dockerfile that will pull and build the Fabric Attached Memory packages necessary for running code on The Machine.
Known Working Environments
This build container has been tested and verified working on the following operating systems :
- Red Hat Enterprise Linux 7.3
- Ubuntu 17.04
- Fedora 26
- Debian Jessie
This repository can be cloned and built, or a complete image can be downloaded off Dockerhub.
Clone & Build
Clone and build the repository with:
git clone email@example.com:FabricAttachedMemory/l4fame-build-container.git cd l4fame-build-container && docker build -t l4fame-build-container .
Pull from Dockerhub
Pull the prebuilt image from Dockerhub.
docker pull austinhpe/l4fame-build-container
Launching the Docker Image
Once the Docker image has been built or downloaded it needs to be run with:
(depending on the method used to acquire the Docker image)
docker run -t --name l4fame-builder --privileged -v BUILD:/build -v ~/deb:/deb l4fame-build-container docker run -t --name l4fame-builder --privileged -v BUILD:/build -v ~/deb:/deb austinhpe/l4fame-build-container
To disconnect from the container without killing it run
To reconnect to the container run
docker attach l4fame-builder
||Allocates and attaches a pseudo-tty, this allows us to background the container without killing it.|
||Names the container "l4fame-builder" to simplify subsequent runs.|
||Gives the container enough privileges to enter a chroot and build arm64 packages.|
||Creates a new Docker volume named BUILD to hold packages and temporary files as they are being built.|
||Mounts a folder to store the finished packages.|
||Optional Flag Sets the number of cores used to compile packages. Replace
||Optional Flag Sets the containers
On completion ~/deb should contain all the packages necessary for running code on The Machine.
Building Individual Packages
Instructions for building individual packages can be found here
- l4fame-build-container - Dockerhub image for the build container
- debserve - Dockerhub image for debserve
This project is licensed under the MIT License - see the LICENSE file for details