Git Product home page Git Product logo

build-env's People

Contributors

clarsonneur avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

clarsonneur

build-env's Issues

Support for docker exec instead docker run

Today, the go wrapper run docker run to execute the go container.
Creating and deleting the container takes times which can be eliminated by a docker run + exec(s)

We would use this kind of features in Jenkins pipeline as well, so that Jenkins will have more stages while those steps can be executed from developer workstation, and have a global script to execute all those stages as single task.

GO: Be able to build from sub directory

Module : GO

After build_env script executed, the build environment gets loaded, and go and glide became available.

When you are in project root, go start docker from the project root.
But if we move to a subdirectory, docker stay in the same working directory. But sometimes, we just need a simple module build and not all the application build.

Ex:
Following looks good:

[/home/larsonsh/src/forj/src/forjj] $ go build
++ sudo docker run --rm -i -t -v /home/me/src/forj/:/go -w /go/src/forjj -u 10001 forjj-go-env /usr/local/go/bin/go-static build -ldflags '-X main.build_branch=workspace-mgt -X main.build_commit=6ac25087d1fc45d4662d082943068129e4712f55 -X main.build_date=2018-09-06_22:18:07_+0200 -X main.build_tag=false'

Following do not looks good:

[/home/larsonsh/src/forj/src/forjj/workspace] $ go build
++ sudo docker run --rm -i -t -v /home/me/src/forj/:/go -w /go/src/forjj -u 10001 forjj-go-env /usr/local/go/bin/go-static build -ldflags '-X main.build_branch=workspace-mgt -X main.build_commit=6ac25087d1fc45d4662d082943068129e4712f55 -X main.build_date=2018-09-06_22:18:07_+0200 -X main.build_tag=false'

This last sentence build from the project root and not from project root/workspace

Requires to build only the sub-directory.

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.