Git Product home page Git Product logo

lektor-remote's Introduction

Quickstart

If you have docker installed, you don't need anything else (not even Lektor).

docker-compose up

Status

This is a work in progress. Currently it's been tested only as far as running on localhost with docker-compose.

In lektor-project/ you'll see the output from running lektor quickstart. At the prompt for blog models I said no. Simply overwrite the content of lektor-project/ with your project files.

Ultimately, the goal is to have all manifests necessary to deploy Lektor to a remote server, and login via some auth process, such as basic auth.

Helpful commands

In case you're not that familiar with docker, here's some commands to help you out.

To see output path:

docker run -it --mount type=bind,source=$(pwd)/lektor-project,target=/opt/lektor softinstigate/lektor project-info --output-path

To get an interactive bash session:

docker run -it --mount type=bind,source=$(pwd)/lektor-project,target=/opt/lektor --entrypoint bash softinstigate/lektor

And if the container is already running:

docker container ls
docker exec -it <container id> bash

Note, docker-compose is a different animal. And so too is docker swarm. If you're confused, you should be.

Docker hub images

I see two images available on docker hub...

Both can work but the lektor root is different, so update your volume path if you change the image.

What's next

  • Add support for deployments (s3cmd, lektor-s3, other...)
  • Need to recommend an approach to separate project files from Lektor container
  • Add traefik and basic auth
  • Probably other things that will come up once I try deploying to a docker swarm...

lektor-remote's People

Contributors

rm-rf-etc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lektor-remote's Issues

Readme / What's next suggestions

I've made it through your manifest, taking my first steps in Docker groan, got everything up and running. It works! Thanks alot, @rm-rf-etc !

Some points (which might be silly newbie ideas), all around the softinstigate/lektor image and creating a clone from and making it more generic:

  • isn't it better Docker practice to e.g. docker pull node, instead of the whole curl, yarn and apt-get thing?
  • wouldn't it, instead of FROM python:2.7, suffice to use a slim or alpine image in order to save space?
  • including webpack would be great, and other Lektor plug-ins too
  • don't know if I've understood Docker well enough, but wouldn't it be cool to have a set of images with different plug-ins included, and select which one to pull in the docker-compose.yaml file? In a similar way as the different python versions are managed

In the "Helpful commands" section I'd add that in order to restart the Lektor server you have to repeat docker-compose up instead of lektor server or something like that. It took me while to figure out.

(I'm also a GitHub newbie - is raising an issue the right way to tell what I've just said?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.