Content management server project written in C++ with MongoDB
Copyright © 2010 — 2025 Randolph Ledesma
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Originated from https://gitlab.com/randop/applications/
libmongocandlibbson
export MONGODBCDRIVER_VERSION="2.2.1"
sudo mkdir -p /opt/mongo-c-driver/current
sudo git clone -b ${MONGODBCDRIVER_VERSION} --depth 1 https://github.com/mongodb/mongo-c-driver.git /opt/mongo-c-driver/${MONGODBCDRIVER_VERSION}
sudo cd /opt/mongo-c-driver/${MONGODBCDRIVER_VERSION} && cmake -DCMAKE_INSTALL_PREFIX=/opt/mongo-c-driver/current .
sudo cd /opt/mongo-c-driver/${MONGODBCDRIVER_VERSION} && make all install
sudo echo "/opt/mongo-c-driver/current" > /etc/ld.so.conf.d/mongoc-driver.conf
sudo ldconfig- Boot the development mongo database
docker compose up --renew-anon-volumes- Configure the Build
export LD_LIBRARY_PATH=/usr/local/lib:/opt/boost/current/lib:/opt/mongo-c-driver/current/lib
meson setup build --prefer-static --default-library=static- Compile
meson compile -C builddocker buildx create --name multiarch --use
docker buildx build --platform linux/amd64,linux/arm64 -t rfledesma/blog:latest --push .Copyright © 2010 — 2025 Randolph Ledesma.
Last updated on 2025-10-10T05:24:03.000Z UTC