Skip to content

Commit 797b087

Browse files
authored
Merge pull request #28 from hpcloud/t4-518-deprecate-all-the-things
T4-518 - remove deprecated elements of the console
2 parents f6a46aa + fd37cc8 commit 797b087

14 files changed

+12
-430
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ docker-compose -f docker-compose.development.yml build
4343

4444
### Run
4545
```
46-
docker-compose up
46+
docker-compose -f docker-compose.development.yml up
4747
```
4848

4949
### Or run in background
5050
```
51-
docker-compose up -d
51+
docker-compose -f docker-compose.development.yml up -d
5252
```
5353

54-
Wait until the UI container finishing building (the `stratosdeploy_ui_1` container stop running), the Web UI should now be running on your docker host ID, usually 192.168.99.100.
54+
Wait until the UI container finishing building (the `stratosdeploy_ui_1` container stop running), the Web UI should now be running on your docker host ID, discoverable via `docker-machine ip [machine-name]`
5555

5656
### Stop
5757

build_and_tag.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -eu
33

44
# set the defaults for docker registry and tag
55
DOCKER_REGISTRY=docker-registry.helion.space:443
@@ -71,12 +71,6 @@ rm -rf ${__DIRNAME}/output/*
7171
rm -rf ${__DIRNAME}/../stratos-ui/dist
7272
rm -rf ${__DIRNAME}/../stratos-server/dist
7373

74-
# Build and publish all of the images for Stratos Console UI
75-
buildAndPublishImage cnap-console-db Dockerfile.UCP ${__DIRNAME}/../stratos-identity-db
76-
buildAndPublishImage cnap-console-mock-api Dockerfile.mock_api.UCP ${__DIRNAME}/../stratos-node-server
77-
buildAndPublishImage cnap-console-mock-auth Dockerfile.mock_auth.UCP ${__DIRNAME}/../stratos-node-server
78-
buildAndPublishImage cnap-console-api Dockerfile.UCP ${__DIRNAME}/../stratos-node-server
79-
8074
# Build Portal Proxy
8175
PORTAL_PROXY_PATH=$GOPATH/src/github.com/hpcloud/portal-proxy
8276
pushd ${PORTAL_PROXY_PATH}

cleanup-docker-compose.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
set -eu
3+
24
echo "Cleaning up docker-compose"
35
docker-compose stop && docker-compose rm -f
46
docker stop stratosdeploy_proxy_1 && docker rm stratosdeploy_proxy_1

common.yml

-62
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
data:
2-
image: ubuntu:14.04
3-
volumes:
4-
- /var/lib/mysql
5-
6-
7-
db:
8-
image: mysql:5.7
9-
env_file:
10-
./db.env
11-
volumes:
12-
- ../stratos-identity-db/versions:/docker-entrypoint-initdb.d
13-
# NOTE: volumes_from field must be included individually if extending this file.
14-
#volumes_from:
15-
# - data
16-
17-
181
postgres:
192
image: postgres:latest
203
env_file:
@@ -25,51 +8,6 @@ postgres:
258
- $GOPATH/src/github.com/hpcloud/portal-proxy/db/initial:/docker-entrypoint-initdb.d
269

2710

28-
# Mock Cloud Foundry service
29-
cf:
30-
build: ../stratos-node-server
31-
dockerfile: Dockerfile.demo.mock_api
32-
ports:
33-
- "3002:3002"
34-
environment:
35-
- PORT=3002
36-
volumes:
37-
- ../stratos-node-server:/usr/src/app
38-
- /usr/src/app/node_modules
39-
40-
41-
# Mock Auth service
42-
auth:
43-
build: ../stratos-node-server
44-
dockerfile: Dockerfile.demo.mock_auth
45-
ports:
46-
- "3001:3001"
47-
environment:
48-
- PORT=3001
49-
volumes:
50-
- ../stratos-node-server:/usr/src/app
51-
- /usr/src/app/node_modules
52-
53-
54-
api:
55-
build: ../stratos-node-server
56-
dockerfile: Dockerfile.prod
57-
ports:
58-
- "3000:3000"
59-
env_file:
60-
./db.env
61-
environment:
62-
- PORT=3000
63-
volumes:
64-
- ../stratos-node-server:/usr/src/app
65-
- /usr/src/app/node_modules
66-
# NOTE: links field must be included individually if extending this file.
67-
#links:
68-
# - db:db
69-
# - auth:auth_service
70-
# - cf:cf_service
71-
72-
7311
proxy:
7412
build: $GOPATH/src/github.com/hpcloud/portal-proxy
7513
dockerfile: Dockerfile.server

db.env

-5
This file was deleted.

docker-compose.development.yml

-43
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,4 @@
11
# The development docker-compose file.
2-
# Use this to have things like "gulp watch" running in the UI.
3-
data:
4-
extends:
5-
file: common.yml
6-
service: data
7-
8-
9-
db:
10-
extends:
11-
file: common.yml
12-
service: db
13-
volumes_from:
14-
- data
15-
16-
17-
# Mock Cloud Foundry service
18-
cf:
19-
extends:
20-
file: common.yml
21-
service: cf
22-
23-
24-
# Mock Auth service
25-
auth:
26-
extends:
27-
file: common.yml
28-
service: auth
29-
30-
31-
api:
32-
extends:
33-
file: common.yml
34-
service: api
35-
environment:
36-
GITHUB_OAUTH_CLIENT_ID: ${GITHUB_OAUTH_CLIENT_ID}
37-
GITHUB_OAUTH_CLIENT_SECRET: ${GITHUB_OAUTH_CLIENT_SECRET}
38-
GITHUB_OAUTH_REDIRECT_URL: ${GITHUB_OAUTH_REDIRECT_URL}
39-
links:
40-
- db:db
41-
- auth:auth_service
42-
- cf:cf_service
43-
442

453
postgres:
464
extends:
@@ -61,7 +19,6 @@ nginx:
6119
file: common.yml
6220
service: nginx
6321
links:
64-
- api:api
6522
- proxy:proxy
6623

6724

docker-compose.testing.yml

-35
This file was deleted.

docker-compose.yml

-52
This file was deleted.

docs/start_fresh.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
2+
set -eu
3+
24
cd ../..
35
git clone https://github.com/hpcloud/helion-ui-theme.git
46
git clone https://github.com/hpcloud/helion-ui-framework.git
5-
git clone https://github.com/hpcloud/stratos-identity-db.git
6-
git clone https://github.com/hpcloud/stratos-node-server.git
77
git clone https://github.com/hpcloud/stratos-server.git
88
git clone https://github.com/hpcloud/stratos-ui.git
99

stand-up-dev-env.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
set -eu
3+
24
cd $GOPATH/src/github.com/hpcloud/portal-proxy/tools/
35
./build_portal_proxy.sh
46
cd -

clean-stand-up-dev-env.sh stand-up-fresh-dev-env.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -eu
23

34
echo "===== Cleaning up cached intermediate items"
45

tools/create-vmware-docker-machine

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
set -eu
23

34
# USAGE: docker-machine-create <machine-name>
45
# machine-name defaults to "default"

0 commit comments

Comments
 (0)