Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mo committed Jun 19, 2017
2 parents 3c3311d + 2887359 commit 09e8a01
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 9 deletions.
46 changes: 40 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ discover-submodules:
dependencies:
- discover-submodules

wait-api-image:
<<: *docker_wait_submodule_img_template
before_script:
- REPO=mistio/mist.api
- IMG=mist

wait-ui-image:
<<: *docker_wait_submodule_img_template
before_script:
Expand All @@ -90,6 +84,46 @@ wait-tests-image:
- IMG=tests_base


# Rebuild api image.

rebuild-api-image:
stage: build
variables:
NUM: "60"
SLEEP: "10"
REPO: mistio/mist.api
IMG: mist
script:
- SUBMODULE_SHA=$(grep ^$REPO, all-submodules.csv | cut -d, -f2)
- echo SUBMODULE_SHA is $SUBMODULE_SHA
- GCR_IMG="gcr.io/mist-ops/$IMG"
- DOCKERHUB_IMG="mist/$IMG"
- IMGTAG="$GCR_IMG:$SUBMODULE_SHA"
- echo IMTAG is $IMGTAG

- echo "Will pull docker image $IMGTAG"
- for i in $(seq 1 $NUM); do docker pull $IMGTAG && OK=1 && break || sleep $SLEEP; done
- if [ -z "$OK" ]; then echo "ERROR Couldn't pull $IMGTAG!" && exit 1; fi

- echo "Will rebuild api image"
- sed -i "s~^FROM.*~FROM $IMGTAG~" docker/mist/Dockerfile
- docker build -t $IMG/io-$CI_COMMIT_SHA docker/mist

- |
for img_name in $GCR_IMG $DOCKERHUB_IMG; do
for ref in $CI_COMMIT_SHA $CI_COMMIT_REF_SLUG; do
IMGTAG2=$img_name:io-$ref
echo "Will tag and push $IMGTAG2"
docker tag $IMG/io-$CI_COMMIT_SHA $IMGTAG2
docker push $IMGTAG2
done
done
tags:
- shell-docker-light
dependencies:
- discover-submodules


# Build secondary images needed for deploying. Tag with SHA and branch name.

.docker_build_img_template: &docker_build_img_template
Expand Down
1 change: 1 addition & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- ./elasticsearch:/elasticsearch
scheduler: *backend
poller: *backend
beat: *backend
hubshell: *backend
api: *backend
sockjs: *backend
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ services:
<<: *backend
command: bin/wait-all bin/poller

beat:
<<: *backend
command: bin/wait-all bin/beat

hubshell:
<<: *backend
command: bin/wait-all bin/hubshell
Expand Down
15 changes: 15 additions & 0 deletions docker/mist/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM mist/mist:io-staging

ARG VERSION_REPO=mistio/mist.io
ARG VERSION_SHA
ARG VERSION_NAME

# Variables defined solely by ARG are accessible as environmental variables
# during build but not during runtime. To persist these in the image, they're
# redefined as ENV in addition to ARG.
ENV VERSION_REPO=$VERSION_REPO \
VERSION_SHA=$VERSION_SHA \
VERSION_NAME=VERSION_NAME

RUN echo "{\"sha\":\"$VERSION_SHA\",\"name\":\"$VERSION_NAME\",\"repo\":\"$VERSION_REPO\",\"modified\":false}" \
> /mist-version.json
2 changes: 1 addition & 1 deletion tests
Submodule tests updated 31 files
+1 −1 Dockerfile
+0 −77 gitlab/mayday/raise_alert.py
+0 −8 gitlab/mayday/start_mayday_test.py
+0 −9 gitlab/mayday/start_staging_mayday.py
+0 −73 gitlab/mayday/trigger_mayday.py
+6 −6 misttests/api/io/libcloud_1.py
+17 −17 misttests/api/io/machines.py
+6 −6 misttests/api/io/schedules.py
+36 −0 misttests/gui/core/mayday/features/alert_incident.feature
+25 −0 misttests/gui/core/mayday/features/celery.feature
+21 −0 misttests/gui/core/mayday/features/graph.feature
+0 −113 misttests/gui/core/mayday/features/mayday.feature
+13 −0 misttests/gui/core/mayday/features/ssh.feature
+29 −0 misttests/gui/core/mayday/features/sso_sign_in.feature
+2 −2 misttests/gui/core/pr/features/clouds_actions.feature
+0 −1 misttests/gui/core/pr/features/clouds_add_1.feature
+3 −2 misttests/gui/core/pr/features/clouds_add_2.feature
+6 −2 misttests/gui/core/pr/features/keys.feature
+2 −1 misttests/gui/core/pr/features/monitoring.feature
+3 −3 misttests/gui/core/pr/features/rbac_rules_2.feature
+3 −1 misttests/gui/core/pr/features/scripts.feature
+3 −1 misttests/gui/core/pr/features/scripts_actions.feature
+1 −0 misttests/gui/core/pr/features/steps/monitoring.py
+6 −6 misttests/gui/steps/api_requests.py
+12 −4 misttests/gui/steps/buttons.py
+11 −10 misttests/gui/steps/clouds.py
+31 −13 misttests/gui/steps/graphs.py
+1 −1 misttests/gui/steps/keys.py
+15 −4 misttests/gui/steps/list.py
+8 −5 misttests/gui/steps/utils.py
+1 −1 run_tests.sh
2 changes: 1 addition & 1 deletion ui
Submodule ui updated 48 files
+2 −2 Dockerfile
+9 −7 bower.json
+1 −1 bower_components/mist-list
+1 −1 bower_components/polyana-dashboard
+1 −1 src/add-graph.html
+0 −90 src/app-rules/app-rules.html
+23 −11 src/app-user-menu/app-user-menu.html
+1 −1 src/element-for-in/element-for-in.html
+11 −0 src/helpers/dialog-element.html
+176 −0 src/keys/key-actions.html
+0 −336 src/logs/log-list.html
+37 −22 src/machines/machine-page.html
+23 −3 src/mist-actions.html
+52 −8 src/mist-app.html
+5 −2 src/mist-header/mist-header.html
+36 −18 src/mist-header/search-suggestions.html
+11 −10 src/mist-header/top-search.html
+63 −0 src/mist-notice.html
+4 −8 src/mist-rules/mist-rules.html
+4 −1 src/mist-sidebar.html
+6 −4 src/mist-socket.html
+144 −0 src/networks/network-actions.html
+3 −3 src/onb-element/onb-element.html
+9 −2 src/organizations/organization-add.html
+66 −13 src/page-dashboard.html
+68 −3 src/page-keys.html
+72 −2 src/page-networks.html
+145 −7 src/page-schedules.html
+71 −2 src/page-scripts.html
+75 −2 src/page-stacks.html
+6 −1 src/page-teams.html
+56 −6 src/page-templates.html
+61 −1 src/page-tunnels.html
+62 −2 src/page-zones.html
+158 −0 src/schedules/schedule-actions.html
+2 −2 src/schedules/schedule-page.html
+151 −0 src/scripts/script-actions.html
+160 −138 src/scripts/script-page.html
+1 −1 src/scripts/script-run.html
+151 −0 src/stacks/stack-actions.html
+31 −163 src/stacks/stack-page.html
+339 −0 src/tags/tags-form.html
+25 −7 src/teams/member-page.html
+0 −8 src/teams/team-actions.html
+7 −1 src/teams/team-add.html
+152 −0 src/templates/template-actions.html
+151 −0 src/tunnels/tunnel-actions.html
+151 −0 src/zones/zone-actions.html

0 comments on commit 09e8a01

Please sign in to comment.