• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.1 Latest
Buy Hosting

Cant connect to database with Docker

Scheduled Pinned Locked Moved NodeBB Development
2 Posts 1 Posters 1.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jonathan O'Donnell232
    wrote on last edited by
    #1

    Locally, I can connect to the DB with npm start

    I can docker build test . and docker run test and see it lifted and running.

    Then I push it to Jenkins. Jenkins pull from my github and I have most things committed in github.

    When Jenkins builds the image, it does not run locally. Do I need to commit more stuff to github? Here is my current .gitignore for nodebb

    Thanks!

    /// my .gitignore file
    npm-debug.log

    public/src/nodebb.min.js
    !src/views/config.json
    public/css/*.css
    *.sublime-project
    *.sublime-workspace
    .project
    *.swp
    Vagrantfile
    .vagrant
    provision.sh
    *.komodoproject
    .DS_Store
    feeds/recent.rss

    pidfile

    templates

    /public/templates

    /public/uploads
    /public/sounds

    compiled files

    /public/stylesheet.css
    /public/admin.css
    /public/nodebb.min.js
    /public/nodebb.min.js.map
    /public/acp.min.js
    /public/acp.min.js.map

    Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

    *.iml

    Directory-based project format:

    .idea/
    .vscode/

    File-based project format:

    *.ipr
    *.iws

    Transifex

    tx.exe
    .transifexrc

    ##Coverage output
    coverage

    Zip files for deployment

    *.zip

    Database Backups

    databaseBackups/

    1 Reply Last reply
    0
  • J Offline
    J Offline
    Jonathan O'Donnell232
    wrote on last edited by
    #2

    I run this docker image in google cloud platform from jenkins. If I grab teh jenkins built image and run it locally, it works as well. It must be that I am blocked to get an external DB connection from within google cloud. Im not sure about that though since the mongodb is hosted in mongolab and the ip is public 😞

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development