Skip to content

Commit

Permalink
20231013
Browse files Browse the repository at this point in the history
  • Loading branch information
pichuang committed Oct 12, 2023
1 parent 14b4119 commit 43e7ad6
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LABEL org.opencontainers.image.title="httpbin-re" \
org.opencontainers.image.source="https://github.com/pichuang/httpbin-re" \
org.opencontainers.image.licenses="ISC License" \
org.opencontainers.image.url="https://httpbin.org" \
org.opencontainers.image.version="20230721" \
org.opencontainers.image.version="20231013" \
org.opencontainers.image.base.name="library/ubuntu:22.04"

RUN apt update -y && \
Expand Down
2 changes: 1 addition & 1 deletion httpbin/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20230721
20231013
3 changes: 2 additions & 1 deletion httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def jsonify(*args, **kwargs):
"title": "httpbin.org",
"description": (
"A simple HTTP Request & Response Service."
"<br/> <br/> <b>Run locally: </b> <code>$ docker run -p 8080:80 ghcr.io/pichuang/httpbin:master</code>"
"<br/> <br/> <b>Run locally: </b> <code>$ docker run -p 8080:80 ghcr.io/pichuang/httpbin-re:master</code>"
),
"contact": {
"responsibleOrganization": "Kenneth Reitz",
Expand Down Expand Up @@ -143,6 +143,7 @@ def jsonify(*args, **kwargs):
}

if "SWAGGER_TITLE" in os.environ:
app.config["SWAGGER"]["title"] = os.environ["SWAGGER_TITLE"]
template["info"]["title"] = os.environ["SWAGGER_TITLE"]

if "SWAGGER_DESCRIPTION" in os.environ:
Expand Down
2 changes: 1 addition & 1 deletion httpbin/templates/flasgger/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<hgroup class="main">
<h2 class="title">httpbin.org
<small>
<pre class="version">20230721</pre>
<pre class="version">20231013</pre>
</small>
</h2>
<pre class="base-url">[ Base URL: httpbin.org/ ]</pre>
Expand Down
37 changes: 37 additions & 0 deletions k8s/httpbin-re.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
apiVersion: v1
kind: Service
metadata:
name: httpbin-re
namespace: default
labels:
app: httpbin-re
spec:
ports:
- name: http
port: 8080
targetPort: 80
selector:
app: httpbin-re
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin-re
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: httpbin-re
template:
metadata:
labels:
app: httpbin-re
spec:
containers:
- image: ghcr.io/pichuang/httpbin-re:master
imagePullPolicy: IfNotPresent
name: httpbin-re
ports:
- containerPort: 80
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gunicorn>=21.2.0
Werkzeug>=2.3.6
Werkzeug==2.2.3
gevent>=23.7.0
flasgger>=0.9.7.1

0 comments on commit 43e7ad6

Please sign in to comment.