Code Monkey home page Code Monkey logo

awe_develop's Introduction

Statically compile AWE (and optionally create minimal docker images of AWE worker and server)

These instructions show how to use a normal AWE Docker image as factory environment to statically compile the AWE binaries and

Execution environment for this script is a default AWE worker (client) container, e.g.:

docker build -t skyport/awe-factory:latest https://raw.githubusercontent.com/MG-RAST/AWE/develop/dockerfiles/awe/Dockerfile

This container needs to be started with socker socket mounted to allow this script to build a scratch AWE worker docker image:

docker run -t -i -v /usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock --name awe-factory skyport/awe-factory:latest

Alternatively, if you only want the binaries and need no docker image, mount the /gopath/bin/ directory:

docker run -t -i -v ~/awe_binaries/:/gopath/bin/ --name awe-factory skyport/awe-factory:latest

Download script to compile statically

cd /
wget https://raw.githubusercontent.com/wgerlach/AWE_develop/master/compile_AWE_client_and_create_scratch_image.sh

If you want to change source branch and/or location, e.g:

cd /gopath/src/github.com/MG-RAST/
rm -rf AWE golib go-dockerclient
git clone --recursive https://github.com/MG-RAST/AWE.git -b master
git clone https://github.com/MG-RAST/golib.git -b master
git clone https://github.com/MG-RAST/go-dockerclient.git -b master

The first time you compile, you may need to get the dependencies first:

go get github.com/MG-RAST/AWE/...

Then run this script to statically compile AWE and create AWE worker and AWE server minimal images:

cd /
./compile_AWE_client_and_create_scratch_image.sh

If you mounted the docker binary into your factory container, you should get nice small images:

REPOSITORY                   TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
skyport/awe-server-minimal   20150420.1601       7be1891365c8        7 seconds ago       13.03 MB
skyport/awe-client-minimal   20150420.1601       d72df1158340        14 seconds ago      10.31 MB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.