-
Notifications
You must be signed in to change notification settings - Fork 12
Add docker image to docker hub #33
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
Comments
I'll take care of that once I have a bit of time. Just note, that this process is really slow (It will take months). |
Ok thanks Pierre |
Maybe documentation for an own image would be also nice for noobs like me. :) |
I have a working build process for Docker but I'm waiting on a pull request in another repository for building meteor apps. I'd like to wait a bit more and see what happens there. Failing that, the weaktyper branch could be used directly. I have considered three options for building wekan:
Any thoughts/suggestions? Option 1, Note: I haven't create the repository |
Please add pull request to Wefork devel branch using Option 1 and Development build option: Because download and install Meteor every time is the one slowing me down a lot, I've been trying to find a way to avoid it. Also many have asked for ability to install offline, this would make it easier. |
If your pull request gets accepted we can change Dockerfile later. |
@xet7, Even if the pull request is accepted, just adding As Wefork is pinned to an old nodejs version, I think wefork could do with it's own build at this stage. Then it would be feasible add |
I created https://github.com/wefork/wekan-launchpad repo, you can add PR for that. |
Honestly the option 2 is not the good one to keep good image uptodate with the production one (that's my concern currently with official wekan repo)
By the way many thanks !
…Sent from my iPhone
On 14 Dec 2016, at 14:04, Lauri Ojansivu ***@***.***> wrote:
@weaktyper
Please add pull request to Wefork devel branch using Option 1 and Development build option:
FROM jshimko/meteor-launchpad:devbuild
Because download and install Meteor every time is the one slowing me down a lot, I've been trying to find a way to avoid it. Also many have asked for ability to install offline, this would make it easier.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@fmonthel I don't really mind but @xet7 prefers this approach due to the time it takes to build from scratch. I think if the nodejs version was specified somewhere in the wekan project it would be helpful for the build. @xet7, any reasons to not depend on a specific version of nodejs? How is anyone to know if it is not a dependency? My current thoughts are to try option 1 or option 2 first. Only thing about option 2 is that it requires push to an automated build to the Dockerhub - something i don't know much about. ..... |
My 2 cents, if we want an official image, it has to look like this:
https://github.com/RocketChat/Docker.Official.Image/blob/master/Dockerfile
Cheers!
Pierre
…On 14-12-2016 23:56, weaktyper wrote:
@fmonthel <https://github.com/fmonthel> I don't really mind but @xet7
<https://github.com/xet7> prefers this approach. I think if the nodejs
version was specified somewhere in the wekan project it would be helpful
for the build.
Perhaps the version of nodejs should be specified somewhere in the
project -- eg |package.json| - as a dependency?
@xet7 <https://github.com/xet7>, any reasons to not depend on a specific
version of nodejs? How is anyone to know if it is not a dependency?
My current thoughts are to try option 1 or option 2 first. Only thing
about option 2 is that it requires push to an automated build to the
Dockerhub - i need to make some time to figure that that process.
.....
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#33 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/ABxvHXqLDbOlvjbQ2RVgswF8R0N-ASzyks5rIIJAgaJpZM4K-5Nu>.
--
I use PGP to protect our privacy, if you want to know more, you can
follow this
https://emailselfdefense.fsf.org/en/
If you have further questions, please do not hesitate to ask.
You can verify my public key here: https://keybase.io/pierreozoux
|
Yes specific version of nodejs is dependency, Wekan does not work with newer versions yet. Newest 0.10.x is 0.10.48 and while Travis CI currently builds using 0.10.40 I'm not aware of reason to use that older version. |
That Rocket.Chat way looks nice, so official image is at: So there could be similarly those different repos like: And for that Dev version, where Meteor does not need to be installed againe there could be for example: Could this work? Does somebody have suggestions for improvements in repo naming, how to do this correctly etc? |
@xet7 I was asking if the node_version could be hard coded into the wefork/wekan root project somewhere though? Reading issues isn't a great way to 'guess' the version, IMO. About the repositories, wefork could start by seeing if it is possible to generate multiple images from a single repository with folders .. eg |
This example is a production image. Unfortunately, I think it is better to have 2 images, one for dev, one for prod. |
What version of node is used to run Wefork on Sandstorm? |
v0.10.45 |
Continuing discussion from #58 by @b-long
I have not seen that. I did read that thread, and MiniMeteor seems interesting: I have not tried it yet. |
Thanks @xet7 😃 I don't think I'll have time to help out, but am willing to test! |
There are quite a few approaches I think to this problem. One approach I thought of was to build the app in intermediate images/containers which will be removed and finally serve the built app with an |
I have changed the Let me know if you would like me to submit a pull request on this. Changes |
Thanks, that's a good starting point. |
You can add wiki page about Docker to: |
Those dependencies are needed to compile fibers etc Node.js extensions, but after compiling they are not needed. You could try does the resulting 223MB image run Wekan successfully. Have just one RUN block formatted escaping with \ line breaks, it's readable enough, and size savings are more important. It you get Wekan working with your changes, create new pull request to change today merged Dockerfile etc. I have not tested yet does Alpine based Docker baseimage behave correctly. |
Sorry for the spam. I just replied to the wrong email. #33 (comment) was intended to answer #71 (comment) (which was posted here by accident). |
@martingabelmann @xet7 |
I also did sometime try to run Docker in Alpine but did run into errors. Please add your changes directly to Wefork wiki, that has page history and comparing built-in. |
Another approach which is not far away form status quo would be to do the docker build with travis and have a dockerhub integration there (i.e. push the image to dockerhub from travis). |
Is there documentation somewhere how to make travis and dockerhub integration? |
I've added some extras to the wiki... localhost: https using nginx-proxy with letsencrypt: I have the nginx-proxy with letsencrypt working... the docker-compose.yml in the wiki is an example. There may be some tweaking required. I suggest blocking signup once the container is initiated and the first signup is complete. |
Seems the ARGs in Dockerfile don't work, they are not passed to the RUN command. I mean these: |
@pcads @stephenmoloney docker-compose -v compose build error :
As you see, ${NODE_VERSION} is not replaced in the Dockfile RUN command. After checked the Dockerfile & docker-compose.yml , I found that Dockerfile use ARCHICTECTURE and docker-compose.yml use ARCHITECTURE. Retried for replace ARCHICTECTURE for ARCHITECTURE in Dockfile, the error is : $ARCHITECTURE is missing too! It's obviously docker-compose.yml args is assign null value to the RUN command, execute set env vars command in the guide doc https://github.com/wefork/wekan/wiki/Docker, REMEMBER to correct the ARCHITECTURE spell error in Dockfile , echo 'NODE_VERSION=v6.6.0' >> .env && then run : everything works fine now. |
no need for the pull request, I've already fixed it in PR 81 . was waiting to add other changes. thanks anyways. :) |
@yatusiter could you please confirm if you have this issue #58 with the containers? |
@pcads I encounted with some network problem and fail to build image , then I run wekan on ubuntu 16.04 from source build. The mongdb version is 2.6.10, hope that will help you out . I'll try the docker later & update the information
|
@yatusiter @xet7 confirmed, with mongodb 2.6.10 , I don't have #58 issue. Looks like there might be a bug in nodejs mongodb3.4 driver |
I have the same problem as @yatusiter. When I try to build the container with
I am running Windows 10 and I am using the latest wekan source. The dockerfile already contains all the fixes that are mentioned on this isse (ARCHITECTURE spelled correctly, NODE_VERSION in upper case etc.). It seems all the necessary fixes are in place, yet it does not work for me. edit: I missed this important part at the very beginning
|
Hi @centigrade-thomas-becker , Are you still having this issue?
If you want to change them, they have to be changed in a
|
Removing these lines from the
New to git, or I'd do the pull request myself :-) |
are intended warning messages. If there is another separate issue, please open a separate issue for it describing it in full. |
I thought I still got those, I'll double-check. My fix is for the 404 error that centigrade-thomas-becker described, which I got too. It seems that by defining the args in the yml file, they do not get properly defaulted in the dockerfile, and remain blank strings throughout. Either way, I'll open a new issue when I'm able to document the process better. This one's for adding the dockerfile, not fixing it. |
For posterity: The trouble with empty arguments continues in #90 |
@Danny4927 asked at chat: "Hi. I want to install wekan with the docker image, but the readme says it needs to be updated can i get updated instructions anywehere? This image: https://hub.docker.com/r/mquandalle/wekan/ uses wefork...can i use the official one?" When I looked at Docker Hub, it seems that official Wekan docker image was built as trusted build when I merged Wefork to Wekan yesterday: Could somebody test does it work? I'll also try myself soon. |
It works for me |
@centigrade-thomas-becker What docker commands did you use to run it? |
This works for me:
|
@xet7 thank you very much. it also works for me 👍 and i found out that the source repository is wekan/wekan, but the linked docs says wefork/wekan. Didn't see that the link goes to wefork (https://github.com/wefork/wekan/wiki/Docker) |
Wefork has been merged back to Wekan and after git commits automatic trusted build is generated to official Docker image so it's always up-to-date. Closing issue. |
Hi
We're using docker compose and should be a good thing to have docker image on docker hub
Thanks
The text was updated successfully, but these errors were encountered: