Code Monkey home page Code Monkey logo

wekan-dev's Introduction

Wekan Development Environment

This is a containerised development environment for Wekan. It's meant to quickly get you set up with a system that you can use to develop Wekan, without needing to worry about its various dependencies.

To get started, you'll need Docker set up on your system. Then:

git clone https://github.com/wekan/wekan-dev.git wekan-dev
cd wekan-dev
git submodule update --init --remote
./build.sh
./run.sh

This will take some time to build the image, and to initially cache & build the meteor packages. Eventually you should be able to see Wekan at http://localhost:8081/, and changes made under src/ will automatically trigger a refresh of the interface. Note that the src/ directory also includes docker configuration; those are for the production builds of Wekan.

To update the Wekan source submodule to the head of its devel branch, you can use git submodule update --remote; the commit reference stored in this repo will undoubtedly lag behind the HEAD of that branch, hence its inclusion even above.

For a continuous view of what's happening with the app, you can use docker-compose logs -f. To start and stop the app, it's just docker-compose start and docker-compose stop. See the docker-compose documentation for more commands.

With this setup, on my 2015 MacBook Pro, building the environment takes 40 seconds or so, and a refresh after changes about 10 seconds. The initial build feels interminable, but is probably about 10-15 minutes. Changes to the packages or other stuff under src/.meteor/ will trigger a partial re-build of the image, which will take a few minutes depending on your network connection.

wekan-dev's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wekan-dev's Issues

run.sh gives error: ERROR: Service 'wekan-dev' failed to build

I am using Ubuntu 18.04.2 LTS inside a VirtualBox.
I have installed docker and docker-compose and successfully run hello-world docker app.
But when I try to execute ./run.sh, I am getting the following build error:

ERROR: Service 'wekan-dev' failed to build: The command '/bin/sh -c set -o xtrace && groupadd -g ${WEKAN_GID} wekan && useradd --system -m -u ${WEKAN_UID} -g ${WEKAN_GID} wekan && mkdir -p /home/wekan/app/.meteor && apt-get update -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && cp $(which tar) $(which tar)~ && ln -sf $(which bsdtar) $(which tar) && wget https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && wget https://nodejs.org/dist/${NODE_VERSION}/SHASUMS256.txt.asc && grep ${NODE_VERSION}-${ARCHITECTURE}.tar.gz SHASUMS256.txt.asc | shasum -a 256 -c - && rm -f SHASUMS256.txt.asc && tar xvzf node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && rm node-${NODE_VERSION}-${ARCHITECTURE}.tar.gz && mv node-${NODE_VERSION}-${ARCHITECTURE} /opt/nodejs && ln -s /opt/nodejs/bin/node /usr/bin/node && ln -s /opt/nodejs/bin/npm /usr/bin/npm && npm install -g npm@${NPM_VERSION} && npm install -g node-gyp && npm install -g fibers@${FIBERS_VERSION}' returned a non-zero code: 100

Environment variables warning

Hi,

I was able to complete the steps listed in the README. When I start wekan, I am getting the below warnings. Can I ignore them as they are set in the Dockerfile?

jean:src$docker-compose start
WARNING: The NODE_VERSION variable is not set. Defaulting to a blank string.
WARNING: The METEOR_RELEASE variable is not set. Defaulting to a blank string.
WARNING: The NPM_VERSION variable is not set. Defaulting to a blank string.
WARNING: The ARCHITECTURE variable is not set. Defaulting to a blank string.
WARNING: The SRC_PATH variable is not set. Defaulting to a blank string.
WARNING: The METEOR_EDGE variable is not set. Defaulting to a blank string.
WARNING: The USE_EDGE variable is not set. Defaulting to a blank string.
Starting wekandb ... done
Starting wekan ... done

Thanks!
Jean

Wekan app container fails (it seems permissions)

Following manual finished without errors, but Wekan not start and console shows the following:

/home/wekan/.meteor/packages/meteor-tool/.1.3.5_1.1sksnpz++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:165
      throw error;
            ^
Error: EACCES, mkdir '/home/wekan/app/.meteor/local'

Installation fails: Unknown package in top-level dependencies for wekan-ldap, accounts-cas, wekan-scrollbar

However I try to initialize the dev version of Wekan (using Root installation or via Docker), I come to the following error:

=> Errors while initializing project:

While selecting package versions:
error: unknown package in top-level dependencies: wekan:wekan-ldap
unknown package in top-level dependencies: wekan:accounts-cas
unknown package in top-level dependencies: wekan-scrollbar

ERROR: Service 'wekan-dev' failed to build: The command '/bin/sh -c chown -R wekan:wekan /home/wekan &&     chmod g+s /home/wekan &&     gosu wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build &&     chown wekan:wekan --recursive .meteor' returned a non-zero code: 1

Fails in ./build.sh

I am using openSUSE Tumbleweed 20240328 and I get a failure in ./build.sh:

 => CACHED [wekan-dev  2/10] RUN     set -o xtrace &&     groupadd -g 100 wekan &&     useradd --system -m -u 1000 -g 100 wekan &&         apt-get update -y && apt-get install -y --no-install-recommends apt-utils bsdtar gnupg gosu wget curl bzip2 build-essential   0.0s
 => ERROR [wekan-dev  3/10] COPY     src/.meteor/.finished-upgraders     src/.meteor/.id     src/.meteor/cordova-plugins     src/.meteor/packages     src/.meteor/platforms     src/.meteor/release     src/.meteor/versions     /home/wekan/app/.meteor/                0.0s
 => ERROR [wekan-dev  4/10] COPY     src/fix-download-unicode/cfs_access-point.txt     /home/wekan/app/fix-download-unicode/cfs_access-point.txt                                                                                                                         0.0s
 => ERROR [wekan-dev  5/10] COPY     src/package.json     src/settings.json     /home/wekan/app/                                                                                                                                                                         0.0s
 => ERROR [wekan-dev  6/10] COPY     src/packages     /home/wekan/app/packages/                                                                                                                                                                                          0.0s
------
 > [wekan-dev  3/10] COPY     src/.meteor/.finished-upgraders     src/.meteor/.id     src/.meteor/cordova-plugins     src/.meteor/packages     src/.meteor/platforms     src/.meteor/release     src/.meteor/versions     /home/wekan/app/.meteor/:
------
------
 > [wekan-dev  4/10] COPY     src/fix-download-unicode/cfs_access-point.txt     /home/wekan/app/fix-download-unicode/cfs_access-point.txt:
------
------
 > [wekan-dev  5/10] COPY     src/package.json     src/settings.json     /home/wekan/app/:
------
------
 > [wekan-dev  6/10] COPY     src/packages     /home/wekan/app/packages/:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref EP7A:RMEA:XSD4:A7KC:EYBX:PURH:NVOB:W7FY:APC7:55PX:HXDF:TKRE::w2ya0a06npbnmclrgtvmhatn0: failed to walk /var/lib/docker/tmp/buildkit-mount1091400053/src: lstat /var/lib/docker/tmp/buildkit-mount1091400053/src: no such file or directory

What can I do about it?

No specific version for fibers cause make error

I got error like below when "npm install -g fibers &&"

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
make: Entering directory /root/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o In file included from /root/.node-gyp/4.2.3/src/node.h:42, from ../src/coroutine.h:1, from ../src/fibers.cc:1: /root/.node-gyp/4.2.3/deps/v8/include/v8.h:336: error: expected unqualified-id before 'using' /root/.node-gyp/4.2.3/deps/v8/include/v8.h: In constructor

The make error got gone when I specified the version like

npm install -g [email protected] &&

I wish this can help others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.