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

refactor: remove planet service #3804

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ jobs:
SUPABASE_URL=${{ inputs.supabase_url }}
ANON_KEY=${{ inputs.anon_key }}
DEPENDENCY_DISCOVERY_URL=${{ inputs.dependency_discovery_url }}
- context: src/api/planet
image: planet
- context: src/api/posts
image: posts
- context: src/api/dependency-discovery
Expand Down
7 changes: 0 additions & 7 deletions config/env.development
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ PARSER_PORT=10000
PARSER_URL=http://localhost/v1/parser


################################################################################
# Planet Service
################################################################################

# Planet Service Port (default is 9876)
PLANET_PORT=9876

################################################################################
# Dependency Discovery Service
################################################################################
Expand Down
7 changes: 0 additions & 7 deletions config/env.production
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@ PARSER_PORT=10000
PARSER_URL=https://api.telescope.cdot.systems/v1/parser


################################################################################
# Planet Service
################################################################################

# Planet Service Port (default is 9876)
PLANET_PORT=9876

################################################################################
# Dependency Discovery Service
################################################################################
Expand Down
7 changes: 0 additions & 7 deletions config/env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ PARSER_PORT=10000
PARSER_URL=https://dev.api.telescope.cdot.systems/v1/parser


################################################################################
# Planet Service
################################################################################

# Planet Service Port (default is 9876)
PLANET_PORT=9876

################################################################################
# Dependency Discovery Service
################################################################################
Expand Down
14 changes: 0 additions & 14 deletions config/nginx.conf.development.template
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,6 @@ http {
listen 8000 default_server;
server_name localhost;

# Cache content served by /legacy forever
location /legacy {
proxy_cache_bypass 1;
proxy_set_header Connection "";
proxy_pass http://planet:9876;
}

# Cache content served by /planet forever
location /planet {
proxy_cache_bypass 1;
proxy_set_header Connection "";
proxy_pass http://planet:9876;
}

location /docs {
root /usr/share/nginx/html;
}
Expand Down
26 changes: 0 additions & 26 deletions config/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -232,32 +232,6 @@ http {
root /var/www/certbot;
}

# Cache content served by /legacy forever
location /legacy {
expires max;
add_header Cache-Control "public, max-age=31536000, immutable";
proxy_pass http://planet:9876;
}

# Cache content served by /planet forever
location /planet {
# Defines conditions under which the response will not be taken from a cache
# In this case, cache will be ignored when requested from client
proxy_cache_bypass $http_cache_control;

# Sets caching time for different response codes
proxy_cache_valid 200 307 10m;
proxy_cache_valid 404 1m;

# Disables processing of certain response header fields from the proxied server
proxy_ignore_headers "Cache-Control" "Expires";

# Added 'X-Proxy-Cache' header to be able to monitor caching
add_header X-Proxy-Cache $upstream_cache_status;

proxy_pass http://planet:9876;
}

# Redirect traffic from /deploy/* to the autodeployment server
# extra slash for accepting all request_uri e.g. /deploy/status
location /deploy/ {
Expand Down
10 changes: 0 additions & 10 deletions docker/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ services:
cache_from:
- docker.cdot.systems/feed-discovery:buildcache

planet:
build:
context: ../src/api/planet
cache_from:
- docker.cdot.systems/planet:buildcache
ports:
- '9876:9876'
environment:
- POSTS_URL=http://posts:${POSTS_PORT:-5555}

dependency-discovery:
build:
context: ../src/api/dependency-discovery
Expand Down
11 changes: 0 additions & 11 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,6 @@ services:
- 'traefik.http.middlewares.strip_parser_prefix.stripprefix.forceSlash=true'
- 'traefik.http.routers.parser.middlewares=strip_parser_prefix'

# planet service
planet:
init: true
container_name: 'planet'
environment:
- NODE_ENV
- PLANET_PORT
- POSTS_URL
- SERVICE_ROLE_KEY
- SUPABASE_URL

dependency-discovery:
init: true
container_name: 'dependency-discovery'
Expand Down
5 changes: 0 additions & 5 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ services:
image: docker.cdot.systems/parser:${DOCKER_DEPLOY_TAG:-latest}
restart: unless-stopped

# planet service
planet:
image: docker.cdot.systems/planet:${DOCKER_DEPLOY_TAG:-latest}
restart: unless-stopped

# search service
search:
image: docker.cdot.systems/search:${DOCKER_DEPLOY_TAG:-latest}
Expand Down
Loading