Skip to content

[Carry 47] ability to build container image#59

Merged
ktock merged 2 commits intomainfrom
buildgcontainer
Aug 3, 2022
Merged

[Carry 47] ability to build container image#59
ktock merged 2 commits intomainfrom
buildgcontainer

Conversation

@ktock
Copy link
Copy Markdown
Owner

@ktock ktock commented Aug 1, 2022

carrying #47

Thanks to @developer-guy

usage

You can run buildg inside Docker.
You need to bind mount the build context to the container.

docker build -t buildg .
docker run --rm -it --privileged -v /path/to/ctx:/ctx:ro buildg debug /ctx

You can also use bake command by Docker Buildx:

docker buildx bake --set image-local.tags=buildg

Signed-off-by: Batuhan Apaydın <[email protected]>

feat: add runc

Signed-off-by: Batuhan Apaydın <[email protected]>

feat: add runc

Signed-off-by: Batuhan Apaydın <[email protected]>

chore: add unnecessary folders to .dockerignore

Signed-off-by: Batuhan Apaydın <[email protected]>

updates according to the feedbacks

Signed-off-by: Batuhan Apaydın <[email protected]>

switch to non-root

Signed-off-by: Batuhan Apaydın <[email protected]>

use ubuntu:bionic as base for final image

Signed-off-by: Batuhan Apaydın <[email protected]>

feat: remove extra statement

Signed-off-by: Batuhan Apaydın <[email protected]>

feat: change base img to ubuntu:20.04ga

Signed-off-by: Batuhan Apaydın <[email protected]>
@ktock ktock force-pushed the buildgcontainer branch from 9d2c3ab to 1c38d6e Compare August 3, 2022 01:19
Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock ktock force-pushed the buildgcontainer branch from 1c38d6e to 986d6e1 Compare August 3, 2022 01:23
@ktock ktock merged commit a60d9de into main Aug 3, 2022
@ktock ktock deleted the buildgcontainer branch August 3, 2022 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants