https://github.com/centerforopenscience/fakecas
https://github.com/centerforopenscience/fakecas
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/centerforopenscience/fakecas
- Owner: CenterForOpenScience
- License: apache-2.0
- Created: 2015-05-26T05:18:34.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-22T14:20:22.000Z (over 1 year ago)
- Last Synced: 2024-06-19T01:59:15.516Z (over 1 year ago)
- Language: Go
- Size: 66.4 KB
- Stars: 9
- Watchers: 6
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Run fakeCAS with OSF
Please follow [README-docker-compose.md](https://github.com/CenterForOpenScience/osf.io/blob/develop/README-docker-compose.md) to run fakeCAS with OSF.
## Change the Image
By default, OSF uses the `master` image of fakeCAS, as shown below in [docker-compose.yml](https://github.com/CenterForOpenScience/osf.io/blob/develop/docker-compose.yml).
```yml
##################################
# Central Authentication Service #
##################################
fakecas:
image: quay.io/centerforopenscience/fakecas:master
command: fakecas -host=0.0.0.0:8080 -osfhost=localhost:5000 -dbaddress=postgres://postgres@postgres:5432/osf?sslmode=disable
restart: unless-stopped
ports:
- 8080:8080
depends_on:
- postgres
stdin_open: true
```
If you need the `develop` one, use `quay.io/centerforopenscience/fakecas:develop` instead. Run `docker-compose pull fakecas` to pull the latest image before starting fakeCAS.
## Pre-docker-compose
Starting [19.0.0](https://github.com/CenterForOpenScience/fakecas/milestone/1), fakeCAS no longer provides downloadable binary executables. Here is the last version [0.11.1](https://github.com/CenterForOpenScience/fakecas/releases/tag/0.11.1) that provides such a binary. However, the binary does not work with OSF starting [19.23.0](https://github.com/CenterForOpenScience/osf.io/releases/tag/19.23.0).
# Develop fakeCAS
Please take a look at the [Dockerfile](https://github.com/cslzchen/fakecas/blob/develop/Dockerfile) for how to develop fakeCAS locally. On macOS, use [`brew`](https://github.com/Homebrew/brew) to install [`go`](https://github.com/golang/go).
After installing go, pull dependencies using `go install` and run fakeCAS locally unsing `go run ./fakeCas.go`