Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql integration #2

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
# This file configures Charmcraft.
# See https://juju.is/docs/sdk/charmcraft-config for guidance.

type: charm
bases:
Expand All @@ -11,3 +9,4 @@ bases:
run-on:
- name: ubuntu
channel: "22.04"

51 changes: 51 additions & 0 deletions hockeypuck_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: hockeypuck

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: hockeypuck
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
name: hockeypuck

title: hockeypuck
version: '0.3'
summary: A summary of your Go application
description: |
This is hockeypuck's description. You have a paragraph or two to tell the
most important story about it. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the
container registries out there.
base: [email protected]
platforms:
amd64:
build-on:
- amd64
build-for:
- amd64
parts:
go-framework/base-layout:
plugin: nil
override-build: mkdir -p ${CRAFT_PART_INSTALL}/hockeypuck/bin ${CRAFT_PART_INSTALL}/hockeypuck/lib
-p ${CRAFT_PART_INSTALL}/hockeypuck/etc -p ${CRAFT_PART_INSTALL}/hockeypuck/data
go-framework/install-app:
plugin: go
source: .
organize:
bin/hockeypuck: hockeypuck/bin/hockeypuck
bin/hockeypuck-dump: hockeypuck/bin/hockeypuck-dump
bin/hockeypuck-load: hockeypuck/bin/hockeypuck-load
bin/hockeypuck-pbuild: hockeypuck/bin/hockeypuck-pbuild
build-snaps:
- go
stage:
- hockeypuck/*
build-environment:
- CGO_ENABLED: '0'
copy-files:
plugin: dump
source: https://github.com/hockeypuck/hockeypuck.git
source-tag: 2.2.2
organize:
contrib/templates: /hockeypuck/lib/templates
contrib/webroot: /hockeypuck/lib/www
prime:
- hockeypuck/*
copy-files:
plugin: dump
source: .
organize:
templates/hockeypuck.conf.tmpl: /hockeypuck/etc/hockeypuck.conf.tmpl
prime:
- hockeypuck/*
Loading
Loading