Skip to content

"Docker-ize" #110

@bestchai

Description

@bestchai

[Issue created by stanleyrya: 2016-06-27]
[Last updated on bitbucket: 2016-08-24]

[Comment created by ohmann: 2016-08-24]
The Docker building and running process works fine, but it still relies on our remote backend server because of this line:
https://bitbucket.org/bestchai/perfume-frontend/src/6282094befb7357ab66804a025a86f9a7abf8b76/js/src/index.js?at=issue%2F117&fileviewer=file-view-default#index.js-19

Also, you're right in thinking the Cheetah warning can be ignored.

[Comment created by stanleyrya: 2016-08-02]
@ohmann Just a little poke to make sure this didn't get lost. No rush

[Comment created by stanleyrya: 2016-06-27]
@ohmann

Hey, I just pushed two Dockerfiles up for Perfume. They both do the same thing however one uses Alpine (and is much smaller/quicker to build) and one uses Ubuntu. I'd like to delete the Ubuntu version and just stick with Alpine but I thought i'd push it for now since it's already made.

To run, just do the following (nothing fancy):

# alpine version
docker build -t perfume .

# ubuntu version
docker build -t perfume --file Dockerfile-ubuntu .

# to run
docker run -p 3000:80 perfume

The server will be up and running on port 3000.

Interestingly enough both versions show this Cheetah "error" when building the frontend pages:

/usr/local/lib/python2.7/dist-packages/Cheetah/Compiler.py:1509: UserWarning: 
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
  "\nYou don't have the C version of NameMapper installed! "

I don't think it's going to be much of a problem, I didn't notice anything different so far.

I'm going on vacation this week but afterwards (or perhaps during, I like working with Docker) I can write up some instructions and tips for working with Docker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions