phase2 / outrigger-examples Goto Github PK
View Code? Open in Web Editor NEWExample projects for Outrigger
License: MIT License
Example projects for Outrigger
License: MIT License
Aiming to create an example Outrigger project for Laravel. I can take this on if no one else wants to take it. It should use much of the same toolset that Drupal 8 requires (PHP 7.1+, MySQL, etc.). Also, delete this issue if I created it in the wrong place.
This issue is a bit of a meta-issue to catch up the examples to the changes in docker and outrigger practices over the last months.
Once the 2.x branch of the outrigger/jenkins-docker image lands, we need to update this example to use config for the 2.x version of jobs as well as an example using a Jenkinsfile.
In docker-compose 2+ the preference is to used a named volume to persist data, rather than data containers. In schema v3+, volumes_from is removed.
This means replacing volumes_from
with a normal volume
statement:
- search-data:/var/lib/solr
Next, the docker-compose manifest will need a simple volume declaration such as:
volumes:
# This data volume persists Solr storage.
# The search service is using a customized Docker image to facilitate write
# access to this volume.
# An empty value indicates all settings are default.
search-data:
Lastly, since we are no longer using a data container, we need to instead customize our docker image to have a place to store the data. In examining the upstream solr image, it appears we could simply locate the data within /opt/solr. Since we are not, we will need a Dockerfile such as:
FROM solr:5.5.4-alpine
USER root
# Create and permission the data directory.
RUN mkdir -pv /var/lib/solr && chown $SOLR_USER:$SOLR_USER /var/lib/solr
# Restore use of the Solr user for container operations.
USER $SOLR_USER
Now, we could conceivably follow the existing data container configuration to add s6 and confd to the solr container, but when I tried that I got some errors so I stepped back to this simpler approach.
Note that our current example uses solr:5.5, but in my current project implementation I decided to specify a specific patch-level, and use the alpine variant because I'm optimizing for local development access to the Solr service. I believe those could be switched back without otherwise changing what I'm demonstrating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.