Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ISD Web Container #7

Open
ahmetkucuk opened this issue May 30, 2018 · 0 comments
Open

Create ISD Web Container #7

ahmetkucuk opened this issue May 30, 2018 · 0 comments

Comments

@ahmetkucuk
Copy link
Owner

This project should be another container inside pipeline: https://github.com/ahmetkucuk/IntegratedSolarDatabase

Before starting creating container, you need to first run IntegratedSolarDatabase in your local and connect it to our remote database. See README for running it locally: https://github.com/ahmetkucuk/IntegratedSolarDatabase/tree/hamdi

Before you run it (bee run), I will send you a app.conf file that has credentials to our database in GSU servers. You need to add this file under /conf file (we cannot push it to github bec. One can connect to our servers). Example: https://github.com/ahmetkucuk/IntegratedSolarDatabase/tree/hamdi/conf

  1. Create folder named isd under ./deploy
  2. Create a Dockerfile
  3. Inside Dockerfile, you need to do following.
  • Get golang image and install beego framwork:
FROM golang:1.8

# Install beego & bee
RUN go get github.com/astaxie/beego
RUN go get github.com/beego/bee
  • Copy IntegratedSolarDatabase into appropriate folder and run beego:
cd ./CORRECT_DIR

RUN git clone https://github.com/ahmetkucuk/IntegratedSolarDatabase.git

bee run
  1. Once you finished, you will need to write new ./conf/app.conf, so that it connects to locally running postgresql container instead of remote server or any other database. Note that, it will not able to find stored procedure on locally running postgresql bec. we are not automatically adding stored procedure. I will create another task that needs to be done before this.

See tutorial about how to create beego image for more detail: https://github.com/lei-cao/beego-in-action/blob/master/en/beego-in-docker.md

I will try to add more detail but it would be better if you ask questions so that I know what you are missing. This is quite big task, don't panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant