Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Docker-ize" #110

Open
bestchai opened this issue May 27, 2020 · 0 comments
Open

"Docker-ize" #110

bestchai opened this issue May 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@bestchai
Copy link
Member

bestchai commented May 27, 2020

[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.

@bestchai bestchai added the enhancement New feature or request label May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant