Comments (8)
Hey @andoniaf, would you feel confortable throwing a docker-compose.yml
in to the mix to make it simpler for people to run the site in development mode (so there's no need to worry about the API or the DB)?
from vlctechhub-site.
@andoniaf I've uploaded to Docker Hub the API image built from the current Docker config in its repo VLCTechHub/VLCTechHub-api.
I'm sure it could be optimized, so feel free to propose there any change you fancy.
from vlctechhub-site.
I've created this #75 PR to add it.
Tomorrow I will add some info to the README and the "Construyendo el sitio web" section in CONTRIBUTING.md and remove the "draft" status form the PR.
from vlctechhub-site.
I'm not sure about where I should add the info about how to run the site with docker. Inside "#
from vlctechhub-site.
Thanks!! Could you add a separated section in the contributing? If you write it in English that would be perfect, I'm translating the .md files in this repo so it will be easier to merge then.
from vlctechhub-site.
Thanks!! Could you add a separated section in the contributing? If you write it in English that would be perfect, I'm translating the .md files in this repo so it will be easier to merge then.
@hell03610 , okey, I will add it as a separated section in English
Hey @andoniaf, would you feel confortable throwing a
docker-compose.yml
in to the mix to make it simpler for people to run the site in development mode (so there's no need to worry about the API or the DB)?
Hey @esebastian , I could do it, but how we would like to handle it? I mean, the API is in another repo and as far as I know the API image is not uploaded to any docker registry right? I can create a docker-compose
explaining that you need to edit it and add your own path to the API folder. Is that okey?
from vlctechhub-site.
@esebastian I'm working on the docker-compose
, is there a reason to not copy the Rakefile in the VLCTechHub/VLCTechHub-api image? If the way to run the api container is with bundle exec rake up
, to use it "outside" the api repo we need to copy the Rakefile in the image too right?
If not we can explain in the docs that you need the api repo in local too, and in the docker-compose
do something like this with the source:
api:
image: vlctechhub/api:latest
volumes:
- type: bind
source: ../VLCTechHub-api
target: /app
consistency: delegated
from vlctechhub-site.
The rake up
task is designed to start the server only in the development environment, and the rest of the Rake tasks are not really needed on a production Docker image of the API (apart from the Twitter related ones, but those are still WIP and do not have any impact here).
For the purpose of this issue we shouldn't neither need the API source code nor having the API running in development mode, so it would be enough to use the published production image vlctechhub/api:latest
without neither any volume mapping nor a custom command override.
Nevertheless, we'll need to provide a value for database connection URL through the MONGODB_URI
environment variable and we would also need to ensure that the database to use has some useful data, so we'll need to devise a procedure for that, either by seeding the data on the container initialization, by using a database image already containing the data or by any other means.
Does it look good to you or do you think we're missing something?
from vlctechhub-site.
Related Issues (20)
- Add preview for markdown fields like description HOT 1
- Create faq's page HOT 1
- Create about us page HOT 1
- Makes sense to rebuild the site during the night? HOT 1
- Add watcher to docker image to rebuild the site when a change is detected HOT 1
- Footer is not visible in mobile HOT 1
- Sanitize job description when creating a new job HOT 3
- Run linters from yarn scripts instead of github actions HOT 2
- Hide Job -> More info if there is no further info url provided HOT 1
- When event titles are long, they are hard to read HOT 3
- Be able to process pages written in markdown HOT 1
- Add a "today" or "this week" badge on upcoming events HOT 1
- Make contact email field required in new job offer form HOT 5
- Add Markdown guide link to job submission form HOT 1
- Add validation to salary field on job submission board HOT 1
- Add new communities not included yet HOT 1
- Use email input type on the email field of the job submission form HOT 2
- Improve compilation speed by doing selective compiling
- Add loader on publish offer submission HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlctechhub-site.