mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-10-13 12:14:37 +00:00
Add docker-compose example and improve Couchbase-2.5 setup
Added a docker-compose.example.yml for Couchbase-2.5 and updated the README with usage instructions. Enhanced the Dockerfile to ensure scripts use Unix line endings and are executable, improving container reliability.
This commit is contained in:
1 parent
8544ce2c4c
commit
035484e5cf
3 files changed
+40
-5
No files matched your search
@@ -2,8 +2,21 @@
|
||||
|
||||
My custom Docker images. Most of them are legacy packages that not be supported anymore, so don't have a official Docker image.
|
||||
|
||||
## Credits:
|
||||
## Couchbase-2.5
|
||||
|
||||
### Download
|
||||
|
||||
```
|
||||
docker pull ghcr.io/tiennm99/docker-images/couchbase-2.5:latest
|
||||
```
|
||||
|
||||
More options: https://github.com/tiennm99/docker-images/pkgs/container/docker-images%2Fcouchbase-2.5
|
||||
|
||||
### Docker compose example
|
||||
|
||||
- [docker-compose.example.yml](couchbase-2.5/docker-compose.example.yml)
|
||||
|
||||
### Credits
|
||||
|
||||
### Couchbase-2.5
|
||||
- https://docs.couchbase.com/couchbase-manual-2.5/cb-install/
|
||||
- https://github.com/couchbase/docker/tree/a9e69006c4dae3d6b8aa4055436c83e9cd51d9e4/enterprise/couchbase-server/2.5.2
|
||||
@@ -19,7 +19,7 @@ RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://old-releases.ubuntu.com/u
|
||||
# numactl: numactl
|
||||
RUN apt-get update && \
|
||||
apt-get install -yq runit wget python-httplib2 chrpath tzdata \
|
||||
lsof lshw sysstat net-tools numactl librtmp0 && \
|
||||
lsof lshw sysstat net-tools numactl librtmp0 dos2unix && \
|
||||
apt-get autoremove && apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
@@ -42,12 +42,16 @@ RUN export INSTALL_DONT_START_SERVER=1 && \
|
||||
|
||||
# Add runit script for couchbase-server
|
||||
COPY scripts/run /etc/service/couchbase-server/run
|
||||
RUN chown -R couchbase:couchbase /etc/service
|
||||
RUN dos2unix /etc/service/couchbase-server/run && \
|
||||
chmod +x /etc/service/couchbase-server/run && \
|
||||
chown -R couchbase:couchbase /etc/service
|
||||
|
||||
# Add dummy script for commands invoked by cbcollect_info that
|
||||
# make no sense in a Docker container
|
||||
COPY scripts/dummy.sh /usr/local/bin/
|
||||
RUN ln -s dummy.sh /usr/local/bin/iptables-save && \
|
||||
RUN dos2unix /usr/local/bin/dummy.sh && \
|
||||
chmod +x /usr/local/bin/dummy.sh && \
|
||||
ln -s dummy.sh /usr/local/bin/iptables-save && \
|
||||
ln -s dummy.sh /usr/local/bin/lvdisplay && \
|
||||
ln -s dummy.sh /usr/local/bin/vgdisplay && \
|
||||
ln -s dummy.sh /usr/local/bin/pvdisplay
|
||||
@@ -57,6 +61,8 @@ RUN chrpath -r '$ORIGIN/../lib' /opt/couchbase/bin/curl
|
||||
|
||||
# Add bootstrap script
|
||||
COPY scripts/entrypoint.sh /
|
||||
RUN dos2unix /entrypoint.sh && \
|
||||
chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["couchbase-server"]
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
couchbase:
|
||||
image: ghcr.io/tiennm99/docker-images/couchbase-2.5:latest
|
||||
ports:
|
||||
- "8091:8091"
|
||||
- "8092:8092"
|
||||
- "11210:11210"
|
||||
- "11211:11211"
|
||||
restart: unless-stopped
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- couchbase_data:/opt/couchbase/var
|
||||
|
||||
volumes:
|
||||
couchbase_data:
|
||||
Reference in new issue
Block a user