-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create cloud agent image #2284
Create cloud agent image #2284
Conversation
I think you meant Also, the plugins and checkpoint stuff can be omitted. |
Yes, well spotted (edited)
Up to whoever writes the docs ( @pidster ? ). I think it's worth mentioning it as optional though. |
Couldn't we simply modify the existing entrypoint.sh file to only do the runsvinit dance when running both the app and probe? That would work for the normal scope too. |
I want to keep the agent image as lean and simple as possible to avoid certification problems in the future. That said, I don't discard doing what you suggest separately. |
docker/Dockerfile.scope
Outdated
RUN apk add --update runit && \ | ||
rm -rf /var/cache/apk/* | ||
ADD ./demo.json / | ||
ADD ./weave ./weaveutil /usr/bin/ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
docker/Dockerfile.cloud-agent
Outdated
ADD ./docker /usr/local/bin/ | ||
ADD ./weave ./weaveutil /usr/bin/ | ||
COPY ./scope /home/weave/ | ||
ENTRYPOINT ["/home/weave/scope", "--mode=probe", "--probe-only"] |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
(test "${DOCKER_ORGANIZATION:-$DOCKER_USER}" == "weaveworks" || ( | ||
docker tag weaveworks/scope:latest ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:latest && | ||
docker tag weaveworks/scope:$(./tools/image-tag) ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:$(./tools/image-tag) | ||
(test "${DOCKER_ORGANIZATION:-$DOCKER_USER}" != "weaveworks" && ( |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
RUN apk add --update runit && \ | ||
rm -rf /var/cache/apk/* | ||
ADD ./demo.json / | ||
COPY ./runsvinit ./entrypoint.sh /home/weave/ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
bin/release
Outdated
for IMAGE in $IMAGES; do | ||
$SUDO docker tag "$DOCKERHUB_USER/$IMAGE" "$DOCKERHUB_USER/$IMAGE:$VERSION" | ||
$SUDO docker push "$DOCKERHUB_USER/$IMAGE:$VERSION" | ||
$SUDO docker tag "$DOCKERHUB_USER/$IMAGE:$VERSION" "$DOCKERHUB_USER/scope:latest_release" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
How about adding |
Good point, will do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to squash the commits! :)
Fixes #2283 and includes the cloud-agent image in our CI and release pipelines.
To run the new cloud-agent image, just do
(Edit: it also fixes #2279 )