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 issue #139
Comments
Thanks for the report. It looks like the app isn't finding a |
I can check this out |
Sounds great. |
@stuartmaxwell sorry about this, I tried to build the docker file and run the compose script with no luck either. Both fail to build. I will start by writing a working docker file and we can iterate on a production level compose after that. |
Thanks for looking into this, I'm keen to help too but have been short on time recently and have no experience with Go. Let me know if I can help with any testing though. |
@stuartmaxwell if you are keen to try out writefreely before we get these things sorted out on master here. I have some images built from https://github.com/writeas/writefreely/tree/docker on my personal docker hub https://cloud.docker.com/u/robjloranger/repository/docker/robjloranger/writefreely. There are instructions there and two compose files as well, but they may change. |
The instructions are incorrect. The working directory is Here is how I got Create cat <<EOF > config.ini
[server]
port = 8080
bind = 0.0.0.0
[database]
type = sqlite3
filename = writefreely.db
[app]
site_name = Our Community
site_description = A place to write freely.
host = http://localhost:8080
disable_js = false
webfonts = true
single_user = true
open_registration = false
min_username_len = 1
max_blogs = 1
federation = false
public_stats = false
private = false
local_timeline = true
user_invites = admin
landing = /
default_visibility = public
EOF Create touch writefreely.db Create docker volume create writefreely Initial database migration: docker run \
-i \
-v writefreely:/go/keys \
-v $(pwd)/config.ini:/go/config.ini \
-v $(pwd)/writefreely:/go/writefreely.db \
--rm \
writeas/writefreely:0.9.1 \
-init-db Create Admin user (see docker run \
-i \
-v writefreely:/go/keys \
-v $(pwd)/config.ini:/go/config.ini \
-v $(pwd)/writefreely:/go/writefreely.db \
--rm \
writeas/writefreely:0.9.1 \
-create-admin \
adam:adam Start the server: docker run \
-d \
-p 8080:8080 \
-v writefreely:/go/keys \
-v $(pwd)/config.ini:/go/config.ini \
-v $(pwd)/writefreely:/go/writefreely.db \
--name=writefreely \
writeas/writefreely:0.9.1 |
Sorry this issue went unattended. Would anyone be interested in submitting a fix here, as a pull request? |
@shleeable is any of this addressed in #357? |
Describe the bug
Hi there - I followed the Docker instructions properly but after running
docker-compose up -d
I am unable to run the setup script since the web container never launches properly. A look at the docker logs shows the following errors:I've checked the docker-compose file to make sure that the
config.ini.example
file is mapped properly:- "./config.ini.example:/go/src/app/config.ini"
Not sure what to check next?
Thanks for open-sourcing this - keen to check it out.
Steps to reproduce (if necessary)
Steps to reproduce the behavior:
docker-compose up -d
./docker-setup.sh
commandExpected behavior
Setup script should run
Application configuration
Version or last commit:
Checked out the latest GitHub code:
Latest commit 71fb635 9 days ago
The text was updated successfully, but these errors were encountered: