Skip to content

Commit

Permalink
Fix relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhuojie committed May 31, 2019
1 parent 3de3f83 commit 8e7c8de
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ jobs:
working_directory: /go/src/github.com/checkr/flagr
steps:
- checkout
- run: apt update && apt install -y sqlite3
- run: make deps
- run: make ci
- run: bash <(curl -s https://codecov.io/bash)

ui_test:
ui_lint:
docker:
- image: node:10
working_directory: /go/src/github.com/checkr/flagr
steps:
- checkout
- run: cd browser/flagr-ui && npm install && npm test
- run: cd browser/flagr-ui && npm install
- run: cd browser/flagr-ui && npm run lint

integration_test:
docker:
Expand All @@ -29,7 +31,6 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: docker pull checkr/flagr-ci:go1.12
- run: cd integration_tests && make build-image
- run: cd integration_tests && make down
- run: cd integration_tests && make up
Expand All @@ -40,5 +41,5 @@ workflows:
test:
jobs:
- unit_test
- ui_test
- ui_lint
- integration_test
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
######################################
# Prepare go_builder
######################################
FROM golang:1.12 as go_builder
WORKDIR /go/src/github.com/checkr/flagr
ADD . .
RUN make build

######################################
# Prepare npm_builder
######################################
FROM node:10 as npm_builder
WORKDIR /go/src/github.com/checkr/flagr
ADD ./browser ./browser
ADD . .
ARG FLAGR_UI_POSSIBLE_ENTITY_TYPES=null
ENV VUE_APP_FLAGR_UI_POSSIBLE_ENTITY_TYPES ${FLAGR_UI_POSSIBLE_ENTITY_TYPES}
RUN make build_ui

######################################
# Prepare go_builder
######################################
FROM golang:1.12 as go_builder
WORKDIR /go/src/github.com/checkr/flagr
ADD . .
RUN make build

######################################
# Copy from builder to alpine image
######################################
Expand Down
3 changes: 3 additions & 0 deletions browser/flagr-ui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BASE_URL=""
VUE_APP_API_URL=http://127.0.0.1:18000/api/v1
VUE_APP_FLAGR_UI_POSSIBLE_ENTITY_TYPES=null
1 change: 0 additions & 1 deletion browser/flagr-ui/.env.development

This file was deleted.

2 changes: 1 addition & 1 deletion browser/flagr-ui/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_APP_API_URL="/api/v1"
VUE_APP_API_URL=api/v1
3 changes: 3 additions & 0 deletions browser/flagr-ui/vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
publicPath: process.env.BASE_URL
}

0 comments on commit 8e7c8de

Please sign in to comment.