mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 07:15:57 +03:00
[GH-ISSUE #12] community-scripts deployment #2
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CrazyWolf13 on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/12
Hi
After running the install script, I noticed that the service is failing with a permission denied error, due to unable to start the bun. Which seems to be installed to /root/.bun/bin/bun and therefore only accessible via root.
I tried changing permissions of bun executable to
though this did not solve it, possibly it would be simpler to run under root user inside the container?
EDIT: I was not able to look into this deeper yet, I just though I report it, maybe I have some time to look into this and submit a PR.
@CrazyWolf13 commented on GitHub (May 21, 2025):
Log:
@arunavo4 commented on GitHub (May 21, 2025):
@CrazyWolf13 Have a look at the new PR
@CrazyWolf13 commented on GitHub (May 22, 2025):
@arunavo4
The script has quite some errors:
Problem with template download, on local-lvm you cannot templates
I was able to build a container myself and then install through the commands there.
I will now test it and if no errors occur, I'll create a script on community-scripts to replace your proxmox install script.
@arunavo4 commented on GitHub (May 22, 2025):
Thanks @CrazyWolf13 I dont have a proxmox setup to test and fix issues with it, would appreaciate a PR on this.
@CrazyWolf13 commented on GitHub (May 22, 2025):
are you sure about this?
If I create a script on community-scripts, we have all the neccessary helper functions, which heavily simplifies the process, building the whole thing again here, does not make much sense in my eyes, though I can certainly look into fixing it, but then I don't see a reason for a script in our org.
@arunavo4 commented on GitHub (May 22, 2025):
@CrazyWolf13 Ahh thats great then I can just add a link to community-scripts in my readme and not worry about maintaining it here.
@arunavo4 commented on GitHub (May 22, 2025):
@CrazyWolf13 Once you have it ready please leave the link here so that I can update my readme with the correct scripts or you can update my readme on how to use the community-scripts and make a PR. whatever way you feel best.
@CrazyWolf13 commented on GitHub (May 22, 2025):
@arunavo4
WIP: https://github.com/community-scripts/ProxmoxVED/blob/main/install/gitea-mirror-install.sh
Is it possible to install the db to a different location, like /opt/db
So we can remove and re-deploy the app code on update, without removing user data?
Our Update process always involves removing the app, checking for new GH-Realse, downloading the source tarball and building.
EDIT: Oh I see just now there is a data folder with the db, can we also just backup that?
@arunavo4 commented on GitHub (May 22, 2025):
@CrazyWolf13 Yea you can move the db anywhere as long as its available to the app. Even with future verisons
@arunavo4 commented on GitHub (May 28, 2025):
Hi @CrazyWolf13 is the LXC script ready? Any updates on it?
@CrazyWolf13 commented on GitHub (May 28, 2025):
@arunavo4 Currently a bit busy, so I've not yet been able to finish it nor test the app or the script.
Perfect!
Is the db the only thing that stores user data in the long term?
or should we consider backing up that data folder?
Because normally on update script we fully remove the app then freshly install it and backup+ restore user-data.
@arunavo4 commented on GitHub (May 28, 2025):
@CrazyWolf13 yea the db is the only thing that stores everything now since the redis is also gone you can only backup the db but i think backing up the data folder is a better choice since if we decide to update the way we store data and add other files in there you don't have to update your script in the future.
@CrazyWolf13 commented on GitHub (Jun 2, 2025):
@arunavo4
Please remove the links to the repo, these are in to our VED Repo, which is our testing non-prod repo, I'll notify once it's in the correct repo :)
@CrazyWolf13 commented on GitHub (Jun 2, 2025):
Here is an example how homarr documented our install:
https://homarr.dev/docs/getting-started/installation/proxmox
The Website after PR is merged will be https://community-scripts.github.io/ProxmoxVE/scripts?id=gitea-mirror
and the command will be:
I finished the script, am now at testing, if I don't see any issues, I'll propose the PR and notify after merge.
@CrazyWolf13 commented on GitHub (Jun 2, 2025):
@arunavo4
Any idea what this error is?
Noticed during rebuild test.
Also the db seems to be already present after running
it then shows db already present.
@arunavo4 commented on GitHub (Jun 2, 2025):
@CrazyWolf13 I think you did not run the migrations, but its fine I have made a new release that makes sure that all the tables are present before running the application. use the latest release
v2.12.0And I will update the docs once you notify me after the PR.
@CrazyWolf13 commented on GitHub (Jun 2, 2025):
@arunavo4 Perfect!
Though I'm seeing vunknown now:
@CrazyWolf13 commented on GitHub (Jun 2, 2025):
@arunavo4 Script seems to work so far, error with the migrations does not appear anymore.
Could you please check the
buncommands?In your readme there seem to be different commands mixed up, once with
bun run setup.Here the install: https://github.com/community-scripts/ProxmoxVED/blob/main/install/gitea-mirror-install.sh#L35-L37
Update: https://github.com/community-scripts/ProxmoxVED/blob/main/ct/gitea-mirror.sh#L55-L56
After that I can push to main ^^
@arunavo4 commented on GitHub (Jun 2, 2025):
@CrazyWolf13 a lot of things that the
docker-entrypoint.shfile does you also need to do for your LXC, like in this case it sets the verison as a environment variable for the app to access.github.com/arunavo4/gitea-mirror@e24b856416/docker-entrypoint.sh (L203-L207)@CrazyWolf13 commented on GitHub (Jun 2, 2025):
@arunavo4
Well that was the whole point of it.
I initially said we only accept it we have a direct deployment as we always have issues with dockerfile conversion approach, so you created the bun installation no?
Can't you handle this on your side of the app?
Otherwise your lxc and your normal installed would also be need to adapted.
@arunavo4 commented on GitHub (Jun 2, 2025):
@CrazyWolf13 thats why the
bun run setupit makes sures that all the migrations and db stuff is run. Use that instead of the install@arunavo4 commented on GitHub (Jun 2, 2025):
@CrazyWolf13
@CrazyWolf13 commented on GitHub (Jun 4, 2025):
@arunavo4
Ah you changed install commands, in the meantime, alright.
I adapted the script :)
Currently have some issues with our functions to deploy, but will be ready soon.
@CrazyWolf13 commented on GitHub (Jun 5, 2025):
Script is online:
https://community-scripts.github.io/ProxmoxVE/scripts?id=gitea-mirror
Has already been installed 5 Times via our deployment :)
https://community-scripts.github.io/ProxmoxVE/data --> Table view, scroll down (Our Public, Opt-In API)
@arunavo4 commented on GitHub (Jun 5, 2025):
@CrazyWolf13 Thank you for your work. I have updated the readme with the new updated links