mirror of
https://github.com/kwk/docker-registry-frontend.git
synced 2024-09-20 07:16:23 +08:00
Revert "Add apiVersion flag and ENV_DOCKER_REGISTRY_API_VERSION var"
This reverts commit 2fe27a2902
.
This commit is contained in:
parent
5e15c62e80
commit
d20042e955
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"host": "path-to-your-registry",
|
||||
"port": 80
|
||||
"apiVersion": "v1"
|
||||
}
|
||||
|
|
|
@ -17,8 +17,6 @@ angular.module('registry-services', ['ngResource'])
|
|||
});
|
||||
}])
|
||||
.factory('Repository', ['$resource', '$log', function($resource, $log){
|
||||
console.log("API VERSION IS:");
|
||||
console.log(RegistryHost());
|
||||
return $resource('/v1/search?q=:searchTerm', {}, {
|
||||
'query': {
|
||||
method:'GET',
|
||||
|
|
|
@ -31,12 +31,9 @@ else
|
|||
echo "export DOCKER_REGISTRY_SCHEME=http" >> /etc/apache2/envvars
|
||||
fi
|
||||
|
||||
# Allow either v1 or v2 Docker Registry API version (defaults to "v1")
|
||||
[[ x$ENV_DOCKER_REGISTRY_API_VERSION =~ ^xv(1|2)$ ]] || ENV_DOCKER_REGISTRY_API_VERSION="v1"
|
||||
|
||||
# docker-registry-frontend acts as a proxy so may well
|
||||
# have a different hostname than the registry itself.
|
||||
echo "{\"host\": \"$ENV_REGISTRY_PROXY_FQDN\", \"port\": $ENV_REGISTRY_PROXY_PORT, \"apiVersion\": \"$ENV_DOCKER_REGISTRY_API_VERSION\"}" > /var/www/html/registry-host.json
|
||||
echo "{\"host\": \"$ENV_REGISTRY_PROXY_FQDN\", \"port\": $ENV_REGISTRY_PROXY_PORT}" > /var/www/html/registry-host.json
|
||||
|
||||
# information about browse mode.
|
||||
[[ x$ENV_MODE_BROWSE_ONLY =~ ^x(true|false)$ ]] || ENV_MODE_BROWSE_ONLY=false
|
||||
|
|
Loading…
Reference in a new issue