-
Notifications
You must be signed in to change notification settings - Fork 27
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
install_local(upgrade="never") doesn't allow to install the golem package-app #21
Comments
Hi again Colin, I tried to modify the above code at the line
I have tried to to what was reported here https://github.com/ThinkR-open/golem/issues/730 Then i tried to modify the previouse lines with the follow lines
But it still not working. Could you help me to solve this? Thanks. |
Hi ! David |
Hi @tottidici, Then I added some data using the I have checked the DESCRIPTION file and the Already at this point the docker system gives me the same error as reported here in advance.
While when i am using run_dev all works perfectly. I don't know how to continue at this point. |
so the packages would be involved? |
I actually don't know if the packages would be involved |
Hi I need to have the log of the docker build -t ciaone . To see why you cant install your package from source. What is the check output ? |
Hi @VincentGuyader, I have created the docker file with Then from the terminal i went to the folder path by using cd path/to/folder Then i execute the follow command And now gave me the follow error in the
|
Hey y'all, As far as I see it the current issue is that the docker building process doesn't exit correctly when the installation of the app fails, so you end up with a successful build of the docker image but with the package for the app not installed. |
@tottidici and @agronomofiorentini can you share (privately ? ) your whole project with Colin and/or me ? 90% of chance that the issue is in your package, but in that case, docker build should have returned an error, so this seems to be a {dockerfiler} issue too ( because of {remotes}) |
For me no problem, indeed it is a pleasure to understand where the problem is. How can i share the whole project? send email to [email protected]? |
I think it's related to #9 |
I have add options(warn = 2) to the remotes::install_local(upgrade="never") and i have tried again to build the image This is the output
|
try this ThinkR-open/golem#760, it's ok for me |
@tottidici thanks to report your news about your issue. But i still have the problem to use docker. And from what i understand the problem is about this systemfonts package, which i didn't mention it in my app and i didn't add it to the description file.
This time i will try to install it and then rebuild the docker image |
@agronomofiorentini
So, I have added this in dockerfile and it's ok ! @agronomofiorentini I hope this helps you |
@tottidici, it is working now. Thanks a lot to you and the thinkR team. |
so nice !!!!!!!! Maybe we should create an issue on the golem project, to improve the construction of the dockerfile, so that the linux libraries necessary to the functioning of the R packages are integrated automatically (if it is possible) Merci à tous !! |
Hi again to everyone, Now I have a new problem. When using the app the user fills out a form and it is sent to a postgres database, I get an error and it is as follow
I report here below as usual the dockerfile where I added EXPOSE 5432 to solve the problem but without success
Aas always i kindly ask you to help me because i have little experience on shinyapp development using docker, but i'm appreciating its capabilities |
Hi ! I think you only need one port, only your docker's port
|
hello everyone again That is, I can now create the image in docker, but when I try to connect this image with a remote postgresql database it crashes. I get the following error.
I report here below the whole project, and I would kindly ask you to help me to solve this last problem. |
I just solved this. I want to thank every participant |
Hello,
I would like to thank again the ThinkR team for creating this package making the development of a web application fast and solid.
I have finished to develop the app and i am ready to deploy it. In this case i would use the docker system.
The follow code is the dockerfile
As reported here #739 i have duplicated this line "RUN R -e 'remotes::install_local(upgrade="never")'"
Then by using the terminal i go the the folder of the web app using cd path/to/folder
Then i have used the follow comands
docker build -t ciaone .
Then when the image it was created i used the next command
docker run ciaone
but with no success, getting always the same error output which is
It seems that the package-app it is not installed yet in the docker environment.
Could you help me to solve this?
Thanks
The text was updated successfully, but these errors were encountered: