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

Create a tf-image for gitea #206

Open
khaledyoussef24 opened this issue Jan 23, 2024 · 5 comments
Open

Create a tf-image for gitea #206

khaledyoussef24 opened this issue Jan 23, 2024 · 5 comments
Assignees

Comments

@khaledyoussef24
Copy link
Contributor

create a tfimage for gitea

threefoldtech/tfgrid-sdk-ts#2015

@xmonader
Copy link
Collaborator

Where is the progress update?

@khaledyoussef24 khaledyoussef24 self-assigned this Jan 31, 2024
@khaledyoussef24
Copy link
Contributor Author

deployed a machine and was working locally implemented the same logic was at taiga image
and made finally this docker image
https://hub.grid.tf/khaledyoussef1.3bot/khaledgx96-gitea-latest.flist
but it had a problem with the environment variables.
telegram-cloud-photo-size-4-5895408875589451164-x

but got some remarks from petter and some improvements as well.

it is better to build the docker image for service from the binary not create a docker image inside the docker image

working on those changes.

@khaledyoussef24
Copy link
Contributor Author

khaledyoussef24 commented Feb 1, 2024

Work done

  • Changed from docker compose to bash script.
  • after the docker image builds the machine gets stuck and can not connect to it.
  • the zinit always giving that the gitea is successfully built
  • added nginx so it can be accessed by https.image
  • added ufw to close the unnecessary ports in the machine allowing only port 22 for ssh and port 3000 for the solution.image
  • still working on some improvements.
  • also removed postgres and used sql:lite

@khaledyoussef24
Copy link
Contributor Author

work to be added

  • make sure that the image stable and usable always
  • fix the port issue to be working on port 80 to be usable if added to the grid
  • adding caddy to the docker image

future work :
allowing migration from existing database

@khaledyoussef24
Copy link
Contributor Author

the pr is requested for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants