tvon / resource-types-website

Website for Concourse resource types (Beta)

Home Page:https://resource-types.concourse-ci.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resource Types Website for Concourse

Welcome to the development repository for the resource types website. Here you can find the source code for the website as well as different options for packaging. The website is currently linked from the Concourse docs website (resource types tab) and it is a standalone website.

Architecture:

  • The code is mainly a Golang back-end with an elm front-end.
  • We also rely on the resource-types directory as the persistence of the website.

Run Locally:

There are multiple ways to run the code locally:

  • to run directly from the code, you can run the following commands:
    • if you want to use a different port, the app uses the environment variable PORT to select its port or else it will use port 9090.
    cd web
    yarn install && yarn build
    cd ../warehouse
    go run ./main.go
  • To run using docker:
    docker build -t dutyfree
    docker run dutyfree -p 9090:9090
  • To run using docker compose: docker-compose up --build that will build the image locally and run the website on port 9090.

Notes:

  • We are also working on a helm chart to deploy the website which is currently very opinionated towards objects that exist in the k8s version of GKE.
  • Using the previous commands you will be able to access the application through: http://localhost:9090.
  • To use a different set of resource types, you can change the resource types under the directory resource-types, this would allow running different versions of the website.

Tests:

  • To test the back-end server:

    cd warehouse
    
    go get -u github.com/onsi/ginkgo/ginkgo
    
    ginkgo -r -keepGoing .
  • To test the front-end code: yarn install && yarn test.

About

Website for Concourse resource types (Beta)

https://resource-types.concourse-ci.org

License:Apache License 2.0


Languages

Language:Elm 55.7%Language:Go 28.1%Language:CSS 8.4%Language:HTML 1.9%Language:Smarty 1.8%Language:Makefile 1.7%Language:Shell 1.3%Language:Dockerfile 1.0%Language:JavaScript 0.0%