Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Adding a Dockerfile #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding a Dockerfile #7

wants to merge 1 commit into from

Conversation

SoTrxII
Copy link

@SoTrxII SoTrxII commented Mar 19, 2020

Hi,
As an intern in Microsoft, I'm currently working with the Open Application Model, Dapr, and of course oamctl.
While using oamctl, I've encountered some issues, namely with the Go version required, that is a bit on the older side, and conflicting with the Go version required by Dapr for example.
To address these issues, I've made a small Dockerfile that I'm currently using to run oamctl.
I thought it would be good to share it with the community, as people interested in OAM/oamctl would probably be accustomed to Docker.

Thanks to multistage building and upx, the whole image is only about 8MB. It is however pretty long to build, and it would maybe be better to host the image on the Docker Hub.

@SoTrxII
Copy link
Author

SoTrxII commented Mar 19, 2020

Forgot about usage.
This is how i use the image for the migrate example:
docker run -v [user_home_dir].kube:/root/.kube -v [oam_repo_dir]\examples:/root [image_name] migrate --deployment=deployment-2-migrate oam-app

For trait list :
docker run -v [user_home_dir].kube:/root/.kube [image_name] trait-list

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant