ChocoWall - Prod ChocoWall - Prod

Admin Login


Welcome to ChocoWall

Quickly and easily get started with ChocoWall production-ready packages.

ChocoWall as Source (Public Packages)

To access our public packages we have a user public

Anonymous User

choco source add -n=occ_chocowall_public -s "'https://packages.ocrcl.ch/v3/index.json'" --user=public --password=public
choco source list

choco source remove --name occ_chocowall_public
choco source remove --name chocolatey
choco source list
choco source disable --name=occ_chocowall_public
choco source remove --name=occ_chocowall_public

choco list --pre
choco list --all
choco list --all --pre

# debug
choco list -dv --trace

# https://docs.chocolatey.org/en-us/configuration
choco config set --name="''" --value="''"

Install Packages

choco install foo

ChocoWall as Source (per User Customized Package Feed)

get your username and password from your fellow admin

Authenticated Usage

1) Single Package from Source

choco install foo --source="'https://packages.ocrcl.ch/v3/index.json'" --user=oct_admin --password=12345

2) Setup ChocoWall as Package Source

choco source add --name=occ_chocowall_oct_feed --source="'https://packages.ocrcl.ch/v3/index.json'" --user=oct_admin --password=12345
choco source disable --name=occ_chocowall_oct_feed
choco source remove --name=occ_chocowall_oct_feed

Install Packages

choco install foo

3) Using ChocoWall with Ansible

collections/chocolatey/chocolatey/win_chocolatey_module.html

- name: Create HTTP source with credentials
  win_chocolatey_source:
    name: chocowall_repo
    state: present
    source: https://packages.ocrcl.ch/v3/index.json
    source_username: username
    source_password: password

- name: Install adobereader from specified repository
  win_chocolatey:
    source: chocowall_repo
    name: adobereader
    version: '2022.001.20142'
    state: present

Further Information

https://docs.chocolatey.org/en-us/choco/commands/sources

Publish Packages to ChocoWall

Get your publishing key from your fellow admin

1) Push a local Chocolatey Package

cd package
# https://docs.chocolatey.org/en-us/create/commands/pack
choco pack --verbose
# https://docs.chocolatey.org/en-us/create/commands/push
choco push --force --verbose --trace --source "https://packages.ocrcl.ch/v3/index.json" --api-key="MY-DEV-KEY"

2) Push from Gitlab CI

API Internals

just for debugging

API GET endpoints

API PUT endpoints

Package specific GET endpoints

  • /v3/registration1/:slug/index.json
  • /v3/flatcontainer/:slug/index.json

Chocolatey

Chocolatey is a software management solution unlike anything else you've ever experienced on Windows.