Giter Club home page Giter Club logo

Comments (3)

tleyden avatar tleyden commented on August 30, 2024 1

This fails with the error Failed to connect to bus: No such file or directory

That's happening because systemd isn't running in the container, and it tries to start the sync_gateway systemd service for convenience reasons.

Some ideas to get around that:

  • dpkg might have a flag to prevent the systemctl start sync_gateway step from running (@ajres have you heard of that?)
  • If there is a zip file download available for Sync Gateway, you could use that instead
  • Install go, clone the Sync Gateway repo, and build it from source during the docker build step using these instructions

I want to use ubuntu as I want to run my app and sync_gateway in the same container

Just as a heads up, that approach is "frowned upon" by docker purists, who advocate basically running a single process in a container. Having said that, I get that sometimes that it's not feasible given other constraints.

What is the reason that the sync_gateway Dockerfile uses centos rather than ubuntu (the Couchbase Server Dockerfile uses ubuntu)?

I think it was just because most enterprise users gravitate towards RHEL and CentOS.

I'm going to close the issue until there are any action items, just to try to keep the issue tracker clean .. but feel free to continue the discussion here!

from docker.

tleyden avatar tleyden commented on August 30, 2024

Here is the .tar.gz version of a recent Sync Gateway version: http://latestbuilds.hq.couchbase.com/couchbase-sync-gateway/1.4.1/1.4.1-3/couchbase-sync-gateway-community_1.4.1-3_x86_64.tar.gz

from docker.

gillez avatar gillez commented on August 30, 2024

Thanks Traun,

I'll try with this tgz file today.

The explanation in the previous message made sense as well. On your point about preventing the systemctl cmd from running, I'm not sure if there's an option to do that, but I believe you can run "dpkg --unpack" rather than "--install" to just unpack the pkg file without configuring. I guess this would be the same as (or very similar to) extracting the tgz file, so I can try this.

Regards,
Giles

from docker.

Related Issues (20)

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.