Skip to content

Commit

Permalink
Fix port on Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Oct 16, 2023
1 parent 5b8ef43 commit fa561cf
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
# (Adding the "ports" property to this file will not forward from a Codespace.)

elasticsearch:
image: exceptionless/elasticsearch:8.9.0
image: exceptionless/elasticsearch:8.10.3
environment:
node.name: elasticsearch
cluster.name: exceptionless
Expand All @@ -38,7 +38,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.9.0
image: docker.elastic.co/kibana/kibana:8.10.3
environment:
xpack.security.enabled: "false"
ports:
Expand Down
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app

ENV HUSKY 0

COPY ./*.sln ./NuGet.Config ./
COPY ./src/*.props ./src/
COPY ./tests/*.props ./tests/
Expand Down Expand Up @@ -42,7 +40,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS job
WORKDIR /app
COPY --from=job-publish /app/src/Exceptionless.Job/out ./

EXPOSE 80 443
EXPOSE 8080

ENTRYPOINT [ "dotnet", "Exceptionless.Job.dll" ]

Expand All @@ -62,7 +60,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS api
WORKDIR /app
COPY --from=api-publish /app/src/Exceptionless.Web/out ./

EXPOSE 80 443
EXPOSE 8080

ENTRYPOINT [ "dotnet", "Exceptionless.Web.dll" ]

Expand Down Expand Up @@ -93,7 +91,7 @@ ENV EX_ConnectionStrings__Storage=provider=folder;path=/app/storage \
RUN chmod +x /app/app-docker-entrypoint.sh
RUN chmod +x /usr/local/bin/update-config

EXPOSE 80 443
EXPOSE 8080

ENTRYPOINT ["/app/app-docker-entrypoint.sh"]

Expand Down Expand Up @@ -149,7 +147,7 @@ RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
./dotnet-install.sh --channel 8.0 --quality preview --runtime aspnetcore && \
rm dotnet-install.sh

EXPOSE 80 443 9200
EXPOSE 8080 9200

ENTRYPOINT ["/app/docker-entrypoint.sh"]

Expand Down Expand Up @@ -205,7 +203,7 @@ RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
./dotnet-install.sh --channel 8.0 --quality preview --runtime aspnetcore && \
rm dotnet-install.sh

EXPOSE 80 443 9200
EXPOSE 8080 9200

ENTRYPOINT ["/app/docker-entrypoint.sh"]

Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.7x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2.2"

services:
elasticsearch:
image: exceptionless/elasticsearch:7.17.12
image: exceptionless/elasticsearch:7.17.14
environment:
discovery.type: single-node
xpack.security.enabled: "false"
Expand All @@ -16,7 +16,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:7.17.12
image: docker.elastic.co/kibana/kibana:7.17.14
ports:
- 5601:5601

Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.apm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2.2"

services:
setup:
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.3
volumes:
- certs:/usr/share/elasticsearch/config/certs
user: "0"
Expand Down Expand Up @@ -53,7 +53,7 @@ services:
depends_on:
setup:
condition: service_healthy
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.3
volumes:
- certs:/usr/share/elasticsearch/config/certs
- esdata:/usr/share/elasticsearch/data
Expand Down Expand Up @@ -98,7 +98,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:8.9.0
image: docker.elastic.co/kibana/kibana:8.10.3
volumes:
- certs:/usr/share/kibana/config/certs
ports:
Expand All @@ -124,7 +124,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/apm/apm-server:8.9.0
image: docker.elastic.co/apm/apm-server:8.10.3
volumes:
- certs:/usr/share/apm-server/certs
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- appdata:/app/storage

elasticsearch:
image: exceptionless/elasticsearch:7.17.12
image: exceptionless/elasticsearch:7.17.14
environment:
discovery.type: single-node
xpack.security.enabled: "false"
Expand All @@ -64,7 +64,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:7.17.12
image: docker.elastic.co/kibana/kibana:7.17.14
ports:
- 5601:5601

Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2.2"

services:
elasticsearch:
image: exceptionless/elasticsearch:8.9.0
image: exceptionless/elasticsearch:8.10.3
environment:
node.name: elasticsearch
cluster.name: exceptionless
Expand All @@ -18,7 +18,7 @@ services:
kibana:
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:8.9.0
image: docker.elastic.co/kibana/kibana:8.10.3
environment:
xpack.security.enabled: "false"
ports:
Expand Down
8 changes: 4 additions & 4 deletions k8s/elastic-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: elastic-monitor
namespace: elastic-system
spec:
version: 8.9.0
version: 8.10.3
nodeSets:
- name: main
count: 2
Expand Down Expand Up @@ -50,7 +50,7 @@ metadata:
name: kibana-monitor
namespace: elastic-system
spec:
version: 8.9.0
version: 8.10.3
count: 1
elasticsearchRef:
name: elastic-monitor
Expand Down Expand Up @@ -144,7 +144,7 @@ metadata:
name: fleet-server
namespace: elastic-system
spec:
version: 8.9.0
version: 8.10.3
kibanaRef:
name: kibana-monitor
elasticsearchRefs:
Expand All @@ -168,7 +168,7 @@ metadata:
name: elastic-agent
namespace: elastic-system
spec:
version: 8.9.0
version: 8.10.3
kibanaRef:
name: kibana-monitor
fleetServerRef:
Expand Down
6 changes: 3 additions & 3 deletions k8s/ex-dev-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: ex-dev
namespace: ex-dev
spec:
version: 8.9.0
image: exceptionless/elasticsearch:8.9.0 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
version: 8.10.3
image: exceptionless/elasticsearch:8.10.3 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
secureSettings:
- secretName: ex-dev-snapshots
http:
Expand Down Expand Up @@ -57,7 +57,7 @@ metadata:
name: ex-dev
namespace: ex-dev
spec:
version: 8.9.0
version: 8.10.3
count: 1
elasticsearchRef:
name: ex-dev
Expand Down
6 changes: 3 additions & 3 deletions k8s/ex-prod-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: ex-prod
namespace: ex-prod
spec:
version: 8.9.0
image: exceptionless/elasticsearch:8.9.0 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
version: 8.10.3
image: exceptionless/elasticsearch:8.10.3 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
monitoring:
metrics:
elasticsearchRefs:
Expand Down Expand Up @@ -68,7 +68,7 @@ metadata:
name: ex-prod
namespace: ex-prod
spec:
version: 8.9.0
version: 8.10.3
count: 1
elasticsearchRef:
name: ex-prod
Expand Down
6 changes: 3 additions & 3 deletions k8s/exceptionless/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ spec:
livenessProbe:
httpGet:
path: /health
port: 80
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
port: 8080
initialDelaySeconds: 3
periodSeconds: 3
resources:
Expand All @@ -51,7 +51,7 @@ spec:
cpu: 800m
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
Expand Down
6 changes: 3 additions & 3 deletions k8s/exceptionless/templates/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ spec:
livenessProbe:
httpGet:
path: /health
port: 80
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
port: 8080
initialDelaySeconds: 3
periodSeconds: 3
resources:
Expand All @@ -51,7 +51,7 @@ spec:
cpu: 500m
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
Expand Down
Loading

0 comments on commit fa561cf

Please sign in to comment.