8000 Deploying Bukdu in Docker container · Issue #53 · wookay/Bukdu.jl · GitHub
[go: up one dir, main page]

Skip to content

Deploying Bukdu in Docker container #53

Open

Description

@AlbertoHdezCerezo

Hi,

Recently I started working with Julia developing microservices. I am using Bukdu to mount a server. Locally it works, but when trying to deploy it in Docker, it does not work. After loading the script a error appears:

WARNING: could not import Servers.nosslconfig into Bukdu

Here is my Docker:

# Select Official Julia 1.0.1 Distribution
# =========================================================
FROM julia:1.0.1-stretch

# Set directory project and copy project
# ======================================
WORKDIR /home/app/julia-bot-api
COPY . /home/app/julia-bot-api

RUN julia deps.jl

# Expose APP port
# ===============
EXPOSE 8080

# Run server when machine is created
# ==================================
CMD julia -i server.jl

And my server:

include("deeplearning.jl")

using Bukdu
import .Bukdu.Actions: index, show, new, edit, create, delete, update
using .DeepLearning

pipeline(:api) do conn::Conn
end

routes(:api) do
    resources("deeplearning", DeepLearningController)
end

Bukdu.start(8080)

Do you know what could be the issue?

Activity

  1. wookay commented on Oct 12, 2018

    @wookay
    Owner

    thanks for the issue. that's the error by changed since HTTP.jl v0.7.0.
    I fixed it on master and submit the new release (v0.3.3).

  2. wookay commented on Oct 24, 2018

    @wookay
    Owner

    OK. we got the Bukdu v0.3.3, please test with it.

  3. Seanny123 commented on Dec 18, 2018

    @Seanny123

    I tried this with the most recent version of Bukdu and it still failed.

  4. wookay commented on Dec 18, 2018

    @wookay
    Owner

    @Seanny123 I don't know much about the docker settings.
    but at least this should work. please check your Container ID and try docker exec -it.

    ~/dockerfiles/julia-bukdu master✔ docker run -p 5000:8080 julia-bukdu
    INFO: Bukdu Listening on: 127.0.0.1:8080
    
    ~ docker ps -a
    CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
    9c091f715e83        julia-bukdu         "julia app.jl"      2 minutes ago       Up 2 minutes        0.0.0.0:5000->8080/tcp   vibrant_allen
    
    ~ docker exec -it 9c091f715e83 curl localhost:8080/init/region/west/site/1/channel/2/
    ["init","west",1,2]
    
  5. Seanny123 commented on Dec 18, 2018

    @Seanny123
  6. Seanny123 commented on Jan 3, 2019

    @Seanny123

    Due to a series of embarrassing misunderstandings, I thought 0.0.0.0 and 127.0.0.1 were equivalent. They are not. By changing the code to Bukdu.start(8080, "0.0.0.0") the problem was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0