Skip to content
A service to store all the metadata for the packages stored in various repositories
PHP Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database/migrations
docker
public
routes
tests
.dockerignore
.editorconfig
.env.dist
.gitignore
.styleci.yml
LICENSE
all$12341234.json
artisan
composer.json
composer.lock
docker-compose.yml
phpunit.xml
readme.md
run-migrations.sh

readme.md

Repo Rangler: Metadata Service

This docker service will reply with information about packages the user is allowed to access

Installation

You should be able to resolve metadata.reporangler.develop locally on your computer. Maybe you need to edit /etc/hosts file or add to dns?

Run the following commands:

  • You can change the network, but change it in all the commands
  • You can change the port, but then obviously you need to change the curl command too
# Create two variables to make it easier to run
port=80
network=reporangler

# Create the docker network (this might already exist, it's safe to ignore errors if it does)
docker network create ${network}

# Create the containers
docker run --rm --network=${network} --name metadata_service_phpfpm reporangler/metadata_service_phpfpm
docker run --rm --network=${network} --name metadata_service_nginx -p ${port}:80 reporangler/metadata_service_nginx

# See whether they are running
docker ps

# Query the container to see what it replies
curl -vvv http://metadata.reporangler.develop:${port}/healthz

It should output

> GET /healthz HTTP/1.1
> Host: metadata.reporangler.develop
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: nginx/1.16.0
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/7.3.4
< Cache-Control: no-cache, private
< Date: Sat, 31 Aug 2019 17:32:06 GMT
< Access-Control-Allow-Origin: *.reporangler.develop
< Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Headers: *
< 
* Connection #0 to host metadata.reporangler.develop left intact
{"statusCode":200,"service":"http:\/\/metadata.reporangler.develop"} 

Usage

There are no usage instructions yet

REST Api

There is no documented REST api yet

You can’t perform that action at this time.