Binary Transparency
Use DPkg::Pre-Install-Pkgs to inject a precheck, run API calls to backend
Create in /etc/apt/sources.list.d/bintra.list with
deb [arch=all] https://nexus.myocastor.de/repository/bintra focal main
Add perhaps gpg key, see gitlab wiki
NODE_ENV=develop npm start
NODE_ENV=test npm test
NODE_ENV=test npm run testlink
NODE_ENV=test npm run combined
The combined is a special testrun, configured by an additional json file runnin gmultiple output formats from onw testrun.
rpmdev-setuptree
cd ~/rpmbuild
Copy the spec file from the bintra repo to SPEC subfolder.
rpmbuild -bb SPECS/bintra.spec
The rpm package is now in RPMS/noarch subfolder.
To add gpg signature of rpm packages, add following lines to ~/.rpmmacros file:
%_signature gpg
%_gpgbin /usr/bin/gpg
%_gpg_name Kai KRETSCHMANN
%__gpg_sign_cmd %{__gpg} gpg --force-v3-sigs --batch --verbose --no-armor --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}'
Run the signature for each created rpm file like this:
rpm --addsign bintra-1.0.2-1.el8.noarch.rpm
Check signature via:
$ rpm -K bintra-1.0.2-1.el8.noarch.rpm
bintra-1.0.2-1.el8.noarch.rpm: digests signatures OK
First setup a link to the download repository:
dnf config-manager --add-repo https://nexus.myocastor.de/repository/bintra_rpm/bintra.repo
If the command config-manager is not known you have to install some dnf plugins first and try again:
dnf install dnf-plugins-core
With that new repo added you can install the latest bintra CentOS client:
dnf --nogpgcheck install bintra
PS: The package is already gpg signed, adding the public key to your local system first will be better. TBD
docker exec -it bintra-nodejs bash
root@bfedf154d642:/usr/src/app# npm run adduser USER PASSWD
^C
Add new property to existing data, like family attribute:
mongo
use bintra
db.packagemodels.updateMany({}, {$set: {"family": "debian"}})
To read out the existing index definitions run from mongosh:
bintra> db.packagemodels.getIndexes()
and to get the usage stats per index
bintra> db.packagemodels.aggregate( [ { $indexStats: { } } ] )
Looking into a running service log:
docker logs bintra-nodejs
docker logs bintra-mongo
docker-compose exec -T database mongodump --gzip --archive|cat >dump_$(date '+%d-%m-%Y_%H-%M-%S').gz
docker-compose exec -T database mongorestore --archive --gzip < dump_xxx.gz
Copies the oas3-tools dist folder to own location in the project and changed the app object handling. Still leaving the packages.json oas3 reference to keep dependencies. Bloody fix until the main module has support for own app modifications included.
docker login gitlab.kretschmann.software:5050 -u kai -p xxxx
docker build -t gitlab.kretschmann.software:5050/kai/bintra:fat - <Dockerfile_fat
docker push gitlab.kretschmann.software:5050/kai/bintra:fat
docker build -t gitlab.kretschmann.software:5050/kai/bintra:deb - <Dockerfile_deb
docker push gitlab.kretschmann.software:5050/kai/bintra:deb
Where using these files as docker configurations:
FROM node:14
MAINTAINER Kai Kretschmann
RUN apt-get update && apt-get install -y \
mongodb
FROM debian:latest
MAINTAINER Kai KRETSCHMANN
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git dh-make build-essential
Gitlab pages found here: pages
Content type
Image
Digest
sha256:e7a46617b…
Size
656.6 MB
Last updated
4 days ago
docker pull kkretsch/bintra