Compare commits
22 Commits
5f3b80ab9e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 91755e8744 | |||
| ee6ec82157 | |||
| fa11c50687 | |||
| 21e158737d | |||
| 515b4a4483 | |||
| a3c1b2d1f7 | |||
| 2ab0db6c2a | |||
| d6d70af0ad | |||
| 75881c4c3f | |||
| 3cd4b3102c | |||
| 11ae884dea | |||
| 6785287227 | |||
| d4784e9787 | |||
| da278556ed | |||
| 4dd0f4b844 | |||
| b6894598a6 | |||
| 972bbedb87 | |||
| db396d6ee1 | |||
| d821e02dec | |||
| 2f02ddb79d | |||
|
|
90cb219d79 | ||
|
|
9c36ebeb14 |
19
README.md
19
README.md
@@ -6,21 +6,4 @@ issues](https://gitea.kosmos.org/kosmos/gitea.kosmos.org/issues) for questions,
|
||||
suggestions, bugs, to-do items, and whatever else you want to discuss or
|
||||
resolve.
|
||||
|
||||
## Building & deploying
|
||||
|
||||
To create a new image containing the customizations:
|
||||
|
||||
Edit `packer/custom.json` to increment the tag, then run this script (needs
|
||||
[Packer](https://www.packer.io/) in your path)
|
||||
|
||||
|
||||
./script/build_customizations_image
|
||||
|
||||
|
||||
Then edit `kubernetes/gitea-server.yaml` to use the new tag
|
||||
(`image: eu.gcr.io/fluted-magpie-218106/gitea_custom:$VERSION`) and apply the
|
||||
change:
|
||||
|
||||
|
||||
cd kubernetes
|
||||
kubectl apply -f gitea-server.yaml
|
||||
See `doc/` folder for some technical info.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#db231d bug ; Something is not working
|
||||
#ead746 docs ; Documentation
|
||||
#76db1d enhancement ; Improving existing functionality
|
||||
#1d76db feature ; New functionality
|
||||
#db1d76 idea ; Something to consider
|
||||
|
||||
20
doc/customizations-image.md
Normal file
20
doc/customizations-image.md
Normal file
@@ -0,0 +1,20 @@
|
||||
## Customizations image
|
||||
|
||||
### Build
|
||||
|
||||
To create a new Docker image containing our Gitea customizations (label sets,
|
||||
styles, page content, etc.):
|
||||
|
||||
Edit `packer/custom.json` to increment the tag, then run this script (needs
|
||||
[Packer](https://www.packer.io/) in your path)
|
||||
|
||||
./script/build_customizations_image
|
||||
|
||||
### Deploy
|
||||
|
||||
Edit `kubernetes/gitea-server.yaml` to use the new tag
|
||||
(`image: eu.gcr.io/fluted-magpie-218106/gitea_custom:$VERSION`) and apply the
|
||||
change:
|
||||
|
||||
cd kubernetes
|
||||
kubectl apply -f gitea-server.yaml
|
||||
@@ -20,7 +20,7 @@ spec:
|
||||
# This is a busybox image with our gitea customizations saved to
|
||||
# /custom, built using ./script/build_customizations_image from the
|
||||
# root of the repo
|
||||
image: eu.gcr.io/fluted-magpie-218106/gitea_custom:0.1
|
||||
image: eu.gcr.io/fluted-magpie-218106/gitea_custom:0.1.2
|
||||
command: [
|
||||
'sh', '-c',
|
||||
'mkdir -p /data/gitea/conf && mkdir -p /data/gitea/https && cp /root/conf/app.ini /data/gitea/conf/app.ini && chown 1000:1000 /data/gitea/conf/app.ini && chmod 660 /data/gitea/conf/app.ini && cp /root/conf/*.pem /data/gitea/https && chmod 600 /data/gitea/https/*.pem && cp -R /custom/* /data/gitea && chown -R 1000:1000 /data/gitea'
|
||||
@@ -32,7 +32,7 @@ spec:
|
||||
name: config
|
||||
containers:
|
||||
- name: gitea-server
|
||||
image: gitea/gitea:1.9.0
|
||||
image: gitea/gitea:1.11.2
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
- containerPort: 3001
|
||||
@@ -42,10 +42,10 @@ spec:
|
||||
name: gitea-server-data
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
cpu: 150m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
{
|
||||
"type": "docker-tag",
|
||||
"repository": "eu.gcr.io/fluted-magpie-218106/gitea_custom",
|
||||
"tag": "0.1"
|
||||
"tag": "0.1.2"
|
||||
},
|
||||
"docker-push"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user