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

[Request] wger fitness/workout #61

Closed
deku-m opened this issue Oct 14, 2021 · 23 comments
Closed

[Request] wger fitness/workout #61

deku-m opened this issue Oct 14, 2021 · 23 comments

Comments

@deku-m
Copy link

deku-m commented Oct 14, 2021

Hi,

I found an new docker/app might be interesting in your awesome add-on repo.
WGER is a Self hosted FLOSS fitness/workout, nutrition and weight tracker written with Django.
So for the sporty under us :) can create there own workout etc.

Repo:
https://github.com/wger-project/wger

@alexbelgium
Copy link
Owner

Hi! Looks interesting, which architecture are you using? Amd64?

@deku-m
Copy link
Author

deku-m commented Oct 14, 2021

Yes im running AMD64

@alexbelgium
Copy link
Owner

I'll check how easy it is to create the addon based on their images ;)

@alexbelgium
Copy link
Owner

There is a potential image but it is amd64 only, so it won't be possible for me to test it. Are you open to help troubleshoot it?

@alexbelgium
Copy link
Owner

A first version is pushed! Ui should be available on port 8000. However the log would be interesting to already see if it starts ;)

@deku-m
Copy link
Author

deku-m commented Oct 17, 2021

When installing:

COPY failed: file not found in build context or excluded by .dockerignore: stat rootfs: file does not exist

AFter repo refresh:
The command '/bin/sh -c mkdir -p /tmp/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio && mv /tmp/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /tmp/bashio && ln -s /data /home/wger/src' returned a non-zero code: 2

@alexbelgium
Copy link
Owner

Hi, addon is up! UI lots and database is persistent.

Could you please try some things to check if everything works? The key element is to restart the addon after you've done some elements as most issues are arising from lack of persistence after restart. Hopefully only the database needs to be persistent, otherwise just let me know!

Enjoy!

@deku-m
Copy link
Author

deku-m commented Oct 18, 2021

Hi Alex,

Thanks looks like its up and running. I added some workouts and after restart they are still available.

@alexbelgium
Copy link
Owner

Great news, thanks! I'll close the issue. Enjoy

@financelurker
Copy link

Hi! So, I'm late to the party... Has this AddOn been ditched from this repository? If so: why?

@alexbelgium
Copy link
Owner

Hi, it was indeed. The structure of the upstream image that prevents using root was incompatible to converting it as an addon. The previous version was functional but no data was remanent, which is not very useful

@deku-m
Copy link
Author

deku-m commented Nov 24, 2022

Is it possible with the new version and docker images provided from wger to build a new one ?

@alexbelgium
Copy link
Owner

Nearly there on my test repo https://github.com/alexbelgium/hassio-addons-test but all static elements have 404... Can't understand why

@deku-m
Copy link
Author

deku-m commented Nov 25, 2022

Looks like someone had the same:
wger-project/docker#32

Can i test it as well?

@alexbelgium
Copy link
Owner

Of course, you can just install the repo above and search for wger... Thanks for the link I'll look at it

@deku-m
Copy link
Author

deku-m commented Nov 25, 2022

I also notice the following:

/etc/cont-init.d/90-run.sh: executing
cp: cannot stat '/home/wger/src/static/*': No such file or directory
/etc/cont-init.d/90-run.sh: exiting 1

@alexbelgium
Copy link
Owner

Oops I'll remove that line sorry I was trying to aggregate all static folders I was seeing :)

alexbelgium added a commit to alexbelgium/hassio-addons-test that referenced this issue Nov 25, 2022
alexbelgium added a commit to alexbelgium/hassio-addons-test that referenced this issue Nov 25, 2022
@deku-m
Copy link
Author

deku-m commented Nov 25, 2022

I update the image but still complaining about the it:

/etc/cont-init.d/90-run.sh: executing cp: cannot stat '/home/wger/src/static/*': No such file or directory yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... [5/5] Building fresh packages... Done in 6.60s. yarn run v1.22.19 $ sass wger/core/static/scss/main.scss:wger/core/static/yarn/bootstrap-compiled.css Done in 2.17s. Synchronizing exercises System check identified some issues: WARNINGS: ?: (axes.W001) You are using the django-axes cache handler for login attempt tracking. Your cache configuration is however invalid and will not work correctly with django-axes. This can leave security holes in your login systems as attempts are not tracked correctly. Reconfigure settings.AXES_CACHE and settings.CACHES per django-axes configuration documentation. *** Synchronizing categories... done! *** Synchronizing muscles...

@alexbelgium
Copy link
Owner

No worry about the complain, there is a "|| true" after it in the code so there is no impact

@alexbelgium alexbelgium reopened this Nov 26, 2022
@deku-m
Copy link
Author

deku-m commented Nov 26, 2022

I think it is something with the nGINX port as you changed the default web port as well.
In the topic he mentioned that that part also need to change.

rolandgeider:
If you want to change the port you need to change the nginx port in line 40 (the static files are served by it, otherwise you are accessing the application directly and all the css files are missing)

if you want to access the application over 8005, then simply to "8005:80"

https://github.com/wger-project/docker/blob/master/docker-compose.yml

@alexbelgium
Copy link
Owner

Hi, should be good now and I've pushed it to the main repo. Could you please test everything? Thanks

@deku-m
Copy link
Author

deku-m commented Nov 28, 2022

Thanks, can confirm it is working :)

@deku-m deku-m closed this as completed Nov 28, 2022
@alexbelgium
Copy link
Owner

Perfect, thanks for the feedback. It doesn't seem ingress can be implemented due to the app structure that uses some hardcoded url

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

3 participants