Skip to content

Commit

Permalink
Merge anz-bank/sysl-playground (#4)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md

* Update go mods

* Fix sysl install

Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Oliver <[email protected]>
  • Loading branch information
3 people authored Jun 2, 2021
1 parent 276fb7b commit 025b0e7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 270 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM anzbank/sysl as sysl

FROM golang:1.14-alpine AS builder
WORKDIR /app
COPY . .
Expand All @@ -20,13 +22,13 @@ ENV PORT=80
RUN apk add --no-cache openjdk8 graphviz font-noto-cjk bash
ENV SYSL_PLANTUML=http://localhost:8080/plantuml

#install sysl
RUN GO111MODULE=on go get -u github.com/anz-bank/sysl/cmd/sysl
COPY --from=sysl /sysl /usr/local/bin

RUN sysl --version

WORKDIR /src
COPY --from=builder /app .
COPY --from=builderjetty /app/target ./target
EXPOSE 80
RUN chmod +x ./script/start.sh
CMD ["./script/start.sh"]
CMD ["./script/start.sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Open http://localhost:3030/ to see the playground website.

## Deployment
- The `Dockerfile` build the application including the dependencies.
- The current pipeline is use [Heroku](https://www.heroku.com/) container registry for the deployment, refer to `.github/workflows/workflow.yml` for the workflow. Just need to configure the `HEROKU_API_KEY` and `HEROKU_APP_NAME` to the secret.
- The current pipeline is use [Heroku](https://www.heroku.com/) container registry for the deployment, refer to `.github/workflows/workflow.yml` for the workflow. Just need to configure the secret`HEROKU_API_KEY` and `HEROKU_APP_NAME`.
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ module github.com/anz-bank/new-sysl-playground
go 1.14

require (
aqwari.net/xml v0.0.0-20200724195937-ae380bb65a55 // indirect
github.com/antlr/antlr4 v0.0.0-20200801005519-2ba38605b949 // indirect
github.com/anz-bank/sysl v0.177.0 // indirect
github.com/arr-ai/wbnf v0.24.0 // indirect
github.com/getkin/kin-openapi v0.19.0 // indirect
github.com/go-openapi/spec v0.19.9 // indirect
github.com/google/uuid v1.1.1
github.com/gorilla/mux v1.7.4
github.com/mailru/easyjson v0.7.2 // indirect
github.com/anz-bank/sysl-go v0.0.0-20200325045908-46c4ce0a2736
github.com/go-chi/chi v4.1.2+incompatible // indirect
github.com/google/uuid v1.2.0
github.com/gorilla/mux v1.8.0
github.com/kr/pretty v0.2.0 // indirect
github.com/rickb777/date v1.12.4
github.com/rs/cors v1.7.0
github.com/spf13/afero v1.3.3 // indirect
github.com/sirupsen/logrus v1.6.0 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/stretchr/testify v1.6.1 // indirect
golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect
golang.org/x/sys v0.0.0-20200806125547-5acd03effb82 // indirect
google.golang.org/protobuf v1.25.0 // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)
Loading

0 comments on commit 025b0e7

Please sign in to comment.