Skip to content

Commit dd65dd6

Browse files
author
Irfan Habib
authored
Merge pull request #11 from cloudfoundry-incubator/v2-master
Merge upstream master
2 parents 47f8d57 + e98e933 commit dd65dd6

File tree

79 files changed

+1378
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1378
-244
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ src/backend/app-core/load_plugins.go
9090
*.bak
9191
secrets.yaml
9292
build/dev_config.json
93+
e2e-reports/
9394

9495
# Customisations
9596

.travis.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ services:
77
- docker
88
addons:
99
chrome: stable
10+
artifacts:
11+
paths:
12+
- ./e2e-reports
13+
target_paths:
14+
- e2e
15+
debug: true
1016
before_install:
11-
- export DISPLAY=:99.0
12-
- sh -e /etc/init.d/xvfb start
13-
- sleep 3 # give xvfb some time to start
17+
- export DISPLAY=:99.0
18+
- sh -e /etc/init.d/xvfb start
19+
- sleep 3 # give xvfb some time to start
1420
install:
1521
- npm install [email protected] -g
1622
- npm install
@@ -19,19 +25,20 @@ branches:
1925
only:
2026
- master
2127
- v2-master
28+
- e2e-tests
2229
cache:
2330
directories:
2431
- "$HOME/.npm"
2532
- "$HOME/.cache"
2633
- node_modules
2734
stages:
28-
- Frontend Lint
29-
- Frontend Unit Tests
30-
- Backend
31-
- name: E2E tests
32-
if: type != pull_request
33-
- name: E2E tests quick
34-
if: type != pull_request OR head_branch =~ ^(?i:e2e)-.*$
35+
- Frontend Lint
36+
- Frontend Unit Tests
37+
- Backend
38+
- name: E2E tests
39+
if: type != pull_request
40+
- name: E2E tests quick
41+
if: type != pull_request OR head_branch =~ ^(?i:e2e)-.*$
3542
jobs:
3643
include:
3744
- stage: Frontend Lint

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11
# Change Log
2+
## 2.0.0 Release Candidate 2
3+
[Full Changelog](https://github.com/cloudfoundry-incubator/stratos/compare/2.0.0-rc1...2.0.0-rc2)
4+
5+
**Improvements:**
6+
- Use consistent icons [\#2517](https://github.com/cloudfoundry-incubator/stratos/pull/2517)
7+
- Allow configuration of backend log level [\#2533](https://github.com/cloudfoundry-incubator/stratos/pull/2533)
8+
9+
10+
**Fixes:**
11+
- CF/Org/Space selector widget with 1 org and 1 space - user can not proceed [\#2467](https://github.com/cloudfoundry-incubator/stratos/issues/2467)
12+
- Error after creating a service instance [\#2473](https://github.com/cloudfoundry-incubator/stratos/issues/2473)
13+
- Visit App button never appears when a route is mapped/created [\#2518](https://github.com/cloudfoundry-incubator/stratos/issues/2518)
14+
- Cannot create service instance from marketplace or service pages [\#2519](https://github.com/cloudfoundry-incubator/stratos/issues/2519)
15+
- Upgrading from v1 to v2 via helm disconnects connected endpoints [\#2527](https://github.com/cloudfoundry-incubator/stratos/issues/2527)
16+
- Failed to deploy app due to invalid client ID [\#2532](https://github.com/cloudfoundry-incubator/stratos/issues/2532)
17+
- Exception thrown when creating space [\#2560](https://github.com/cloudfoundry-incubator/stratos/issues/2560)
18+
- Helm deployment: Upgrade notice can appear for some time if db takes a while to become ready [\#2546](https://github.com/cloudfoundry-incubator/stratos/issues/2546)
19+
- Fix assign role for non-admin connected user [\#2562](https://github.com/cloudfoundry-incubator/stratos/pull/2562)
20+
- Fix client and client secret issues when pushing apps [\#2553](https://github.com/cloudfoundry-incubator/stratos/pull/2553)
21+
- Fix Docker All-in-one image build [\#2552](https://github.com/cloudfoundry-incubator/stratos/pull/2552)
22+
- Clean entity service [\#2551](https://github.com/cloudfoundry-incubator/stratos/pull/2551)
23+
- Remove base git package to address CVE 2018-11235 [\#2530](https://github.com/cloudfoundry-incubator/stratos/pull/2530)
24+
- Entity deletion: Remove child entities [\#2486](https://github.com/cloudfoundry-incubator/stratos/pull/2486)
25+
26+
27+
## 2.0.0 Release Candidate 1
28+
[Full Changelog](https://github.com/cloudfoundry-incubator/stratos/compare/2.0.0-beta-002...2.0.0-RC-1)
29+
30+
This is the first release candidate of Version 2 of Stratos.
31+
32+
The main focus of this release are bug fixes for release.
33+
34+
**Improvements:**
35+
- Add ingress example and docs for kubernetes deloyment [\#2510](https://github.com/cloudfoundry-incubator/stratos/pull/2510)
36+
37+
**Fixed bugs:**
38+
- Fix for app count being stuck after adding an app in org card [\#2511](https://github.com/cloudfoundry-incubator/stratos/pull/2511)
39+
- Create service instance after connecting a new endpoint did not fetch organisation [\#2472](https://github.com/cloudfoundry-incubator/stratos/issues/2472)
40+
- Fixed an issue where we failed to store response from 1 or more endpoints [\#2513](https://github.com/cloudfoundry-incubator/stratos/pull/2513)
41+
- Ensure `Remove User` confirmation modal contains correct role prefix [\#2508](https://github.com/cloudfoundry-incubator/stratos/pull/2508)
42+
- Fix route schema [\#2506](https://github.com/cloudfoundry-incubator/stratos/pull/2506)
43+
- Fixes state reset issue when creating a service instance from different modes [\#2515](https://github.com/cloudfoundry-incubator/stratos/pull/2515)
244

345
## 2.0.0 Beta 2
446
[Full Changelog](https://github.com/cloudfoundry-incubator/stratos/compare/v2.0.0-beta-001...2.0.0-beta-002)

deploy/Dockerfile.all-in-one

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
FROM splatform/stratos-aio-base:opensuse
22

3-
COPY *.json ./
4-
COPY gulpfile.js ./
5-
COPY src ./src
6-
COPY build ./build/
7-
COPY deploy/tools/generate_cert.sh generate_cert.sh
8-
COPY deploy/db deploy/db
9-
COPY deploy/all-in-one/config.all-in-one.properties config.properties
3+
COPY --chown=stratos:users *.json ./
4+
COPY --chown=stratos:users gulpfile.js ./
5+
COPY --chown=stratos:users src ./src
6+
COPY --chown=stratos:users build ./build/
7+
COPY --chown=stratos:users deploy/tools/generate_cert.sh generate_cert.sh
8+
COPY --chown=stratos:users deploy/db deploy/db
9+
COPY --chown=stratos:users deploy/all-in-one/config.all-in-one.properties config.properties
1010

1111
RUN npm install \
12-
&& npm run build \
12+
&& npm run build-cf \
1313
&& npm run build-backend \
1414
&& npm run deploy-cf
1515

1616
# Generate dev-certs
17-
RUN CERTS_PATH=/go/dev-certs ./generate_cert.sh \
17+
RUN CERTS_PATH=/home/stratos/dev-certs ./generate_cert.sh \
1818
&& chmod +x portal-proxy
1919

2020
EXPOSE 443
2121

22+
# Need to be root to bind to port 443
23+
USER root
24+
2225
ENTRYPOINT ["./portal-proxy"]

deploy/Dockerfile.bk

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ ENTRYPOINT ["/entrypoint.sh"]
4040

4141
# use --target=dev-build to build backend image for docker-compose
4242
FROM prod-build as dev-build
43-
COPY dev-certs dev-certs
43+
RUN CERTS_PATH=dev-certs /generate_cert.sh

deploy/all-in-one/Dockerfile

-33
This file was deleted.

deploy/all-in-one/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ You will need to have installed Docker, see:
1313
To build the container, change directory to the root of the project and open a command prompt:
1414

1515
```
16-
docker build -f deploy/all-in-one/Dockerfile . -t stratos
16+
docker build -f deploy/Dockerfile.all-in-one . -t stratos
1717
```
1818

19+
> Note: The Dockerfile for all-in-one is in the `deploy` folder and not the `deploy/all-in-one` folder.
20+
21+
> Note: If you are using Docker for Macand you get an error 137 when building, you should increase the memory available to Docker (via Preferences > Advanced) and try again.
22+
1923
Bring up the container with:
2024

2125
```
@@ -26,4 +30,4 @@ Stratos should now be accessible at the following URL:
2630

2731
https://localhost:4443
2832

29-
To login use the following credentials detailed [here](../../docs/access.md).
33+
You will be presented with the Stratos Setup welcome screen - you will need to enter your UAA information to configure Stratos. Once complete, you will be able to login with your credentials.

deploy/ci/build-images.yml

+109-22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
---
2+
resource_types:
3+
- name: docker-image
4+
type: docker-image
5+
privileged: true
6+
source:
7+
repository: ((docker-image-resource))
8+
tag: ((docker-image-resource-tag))
9+
110
resources:
211
- name: stratos
312
type: git
@@ -17,6 +26,56 @@ resources:
1726
start: 12:00 AM
1827
stop: 2:00 AM
1928
location: UTC
29+
# Docker Images
30+
- name: jetstream-dc-image
31+
type: docker-image
32+
source:
33+
username: ((docker-username))
34+
password: ((docker-password))
35+
repository: ((docker-org))/stratos-dc-jetstream
36+
- name: dc-db-migrator-image
37+
type: docker-image
38+
source:
39+
username: ((docker-username))
40+
password: ((docker-password))
41+
repository: ((docker-org))/stratos-dc-db-migrator
42+
- name: mariadb-dc-image
43+
type: docker-image
44+
source:
45+
username: ((docker-username))
46+
password: ((docker-password))
47+
repository: ((docker-org))/stratos-dc-mariadb
48+
- name: ui-dc-image
49+
type: docker-image
50+
source:
51+
username: ((docker-username))
52+
password: ((docker-password))
53+
repository: ((docker-org))/stratos-dc-console
54+
- name: jetstream-helm-image
55+
type: docker-image
56+
source:
57+
username: ((docker-username))
58+
password: ((docker-password))
59+
repository: ((docker-org))/stratos-jetstream
60+
- name: postflight-helm-image
61+
type: docker-image
62+
source:
63+
username: ((docker-username))
64+
password: ((docker-password))
65+
repository: ((docker-org))/stratos-postflight-job
66+
- name: mariadb-helm-image
67+
type: docker-image
68+
source:
69+
username: ((docker-username))
70+
password: ((docker-password))
71+
repository: ((docker-org))/stratos-mariadb
72+
- name: ui-helm-image
73+
type: docker-image
74+
source:
75+
username: ((docker-username))
76+
password: ((docker-password))
77+
repository: ((docker-org))/stratos-console
78+
2079
groups:
2180
- name: tests
2281
jobs:
@@ -30,33 +89,61 @@ jobs:
3089
- get: stratos
3190
- get: after-midnight
3291
trigger: true
33-
- do:
34-
- task: generete-certs
35-
timeout: 2m
36-
file: stratos/deploy/ci/tasks/build-images/generate-certs.yml
37-
- task: build
38-
privileged: true
39-
timeout: 30m
40-
file: stratos/deploy/ci/tasks/build-images/build-helm.yml
41-
params:
42-
DOCKER_USERNAME: ((docker-username))
43-
DOCKER_PASSWORD: ((docker-password))
92+
- aggregate:
93+
- do:
94+
- put: jetstream-helm-image
95+
params:
96+
dockerfile: stratos/deploy/Dockerfile.bk
97+
build: stratos/
98+
target_name: prod-build
99+
tag_as_latest: true
100+
- put: postflight-helm-image
101+
params:
102+
dockerfile: stratos/deploy/Dockerfile.bk
103+
build: stratos/
104+
target_name: postflight-job
105+
tag_as_latest: true
106+
- put: mariadb-helm-image
107+
params:
108+
dockerfile: stratos/deploy/db/Dockerfile.mariadb
109+
build: stratos/deploy/db
110+
tag_as_latest: true
111+
- put: ui-helm-image
112+
params:
113+
dockerfile: stratos/deploy/Dockerfile.ui
114+
build: stratos/
115+
target_name: prod-build
116+
tag_as_latest: true
44117
- name: build-dc-images
45118
plan:
46119
- get: stratos
47120
- get: after-midnight
48121
trigger: true
49-
- do:
50-
- task: generete-certs
51-
timeout: 2m
52-
file: stratos/deploy/ci/tasks/build-images/generate-certs.yml
53-
- task: build
54-
privileged: true
55-
timeout: 30m
56-
file: stratos/deploy/ci/tasks/build-images/build-dc.yml
57-
params:
58-
DOCKER_USERNAME: ((docker-username))
59-
DOCKER_PASSWORD: ((docker-password))
122+
- aggregate:
123+
- do:
124+
- put: jetstream-dc-image
125+
params:
126+
dockerfile: stratos/deploy/Dockerfile.bk
127+
build: stratos/
128+
target_name: dev-build
129+
tag_as_latest: true
130+
- put: dc-db-migrator-image
131+
params:
132+
dockerfile: stratos/deploy/Dockerfile.bk
133+
build: stratos/
134+
target_name: db-migrator
135+
tag_as_latest: true
136+
- put: mariadb-dc-image
137+
params:
138+
dockerfile: stratos/deploy/db/Dockerfile.mariadb
139+
build: stratos/deploy/db
140+
tag_as_latest: true
141+
- put: ui-dc-image
142+
params:
143+
dockerfile: stratos/deploy/Dockerfile.ui
144+
build: stratos/
145+
target_name: prod-build
146+
tag_as_latest: true
60147

61148
- name: build-aio-image
62149
public: true

deploy/ci/console-dev-releases.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
- do:
7575
- task: generate-tag
7676
file: stratos/deploy/ci/tasks/dev-releases/generate-tag-files.yml
77+
params:
78+
TAG_SUFFIX: ((tag-suffix))
7779
- put: image-tag
7880
params:
7981
file: image-tag/*.tar
@@ -139,8 +141,8 @@ jobs:
139141
params:
140142
GIT_USER: ((concourse-user))
141143
GIT_EMAIL: ((concourse-email))
142-
GITHUB_ORG: ((github-organization))
143-
GITHUB_REPO: ((github-repository))
144+
GITHUB_ORG: ((helm-repo-github-organization))
145+
GITHUB_REPO: ((helm-repo-github-repository))
144146
GIT_PRIVATE_KEY: ((github-private-key))
145147
DOCKER_ORG: ((artifact-docker-organization))
146148
DOCKER_REGISTRY: ((artifact-docker-registry))

deploy/ci/tasks/dev-releases/create-chart.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ run:
2525
source ${STRATOS}/deploy/ci/tasks/dev-releases/create-chart-helper.sh
2626
HELM_REPO=${ROOT_DIR}/helm-repo/${HELM_REPO_PATH}
2727
GIT_TAG=$(cat image-tag/v2-alpha-tag)
28+
# Required for setupAndPushChange commit message
29+
IMAGE_TAG=${GIT_TAG}
2830
cd ${STRATOS}/deploy/kubernetes/
2931
patchHelmChart ${GIT_TAG} ${DOCKER_ORG} ${DOCKER_REGISTRY} ./console
3032

0 commit comments

Comments
 (0)