Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ludea
@Ludea
Within docker
I try 2 reverse proxy, both doesn't work
Ivan Kurnosov
@zerkms
What exactly do you serve?
The published repositories served just as static files, and api can be served as just
    location /api {
        proxy_pass http://localhost:8090/api;
    }
Ludea
@Ludea
I am not sure the reverse proxy I use support serve static file
traefik.io
Here my docker compose file
```version: '3'
services:
proxy:
image: traefik:latest
container_name: proxy
ports:
  - 80:80
  - 443:443
  - 8080:8080
networks:
  - web
volumes:
  - "./traefik:/etc/traefik"
  - /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
labels:
  - "traefik.frontend.rule=Host:proxy.team-doze.com"
  - "traefik.port=8080"
  - "traefik.backend=proxy"
  - "traefik.frontend.entryPoints=http,https"
    build: ./aptly
    container_name: repository4
    restart: always
    volumes:
     - ./Binaries/Linux/Server:/aptly
     - ~/gpg:/var/local
    labels:
     - "traefik.enable=true"
     - "traefik.frontend.rule=Host:downloads.team-doze.com"
     - "traefik.port=80"
     - "traefik.backend=aptly"
     - "traefik.frontend.entryPoints=http,https"
And dockerfile

```FROM debian:stretch
MAINTAINER Ludea@Team Doze

RUN apt-get update && \
apt dist-upgrade -y && \
apt install gnupg ca-certificates bash -y

RUN echo "deb http://repo.aptly.info/ squeeze main" > /etc/apt/sources.list.d/aptly.list

RUN apt-key adv --keyserver keys.gnupg.net --recv-keys 9E3E53F19C7DE460

RUN apt update && apt install aptly -y

EXPOSE 80

ADD aptly.conf /etc/aptly.conf
ADD start.sh .
RUN chmod +x ./start.sh

VOLUME ["/aptly/public"]

CMD ["/bin/bash", "./start.sh"]


(sorry for the message format)
Ivan Kurnosov
@zerkms
you need a webserver to serve static files
if traefik cannot serve static files - you need a webserver to do that for you
Ludea
@Ludea
I found a solution
I use embed server, and redirect http with traefik
Apt update find the repo!
But, it can not find the package :(
Ludea
@Ludea
Fix, it was my fault
So I can download my package from aptly!
Sean
@seaninspace
if I have a snapshot published, can I do something like "aptly publish switch" but from a snapshot -> repository?
or do I have to drop the published snapshot, then publish a repository to the same prefix/distro?
Andrey Smirnov
@smira
@seaninspace you can switch to repository snapshot, but you can't switch from published snapshot to published repository (directly, without snapshot)
Sean
@seaninspace
@smira thanks, that's what I figured but I just wanted to be sure
Ludea
@Ludea
Hello, there is an issue when downloading aptly
GPG error: http://repo.aptly.info squeeze InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED75B5A4483DA07C
Andrey Smirnov
@smira
@Ludea previous key got expired, so you need to obtain and install new key as described on the download page (https://www.aptly.info/download/)
Ludea
@Ludea
Ok, thanks for your answers, it's working !
Denis Brækhus
@denisbr
If I want to remove packageX-3.0.0.deb from a published repository, what are the steps required to do so?
publish drop
snapshot drop
then?
Denis Brækhus
@denisbr
@smira I appreciate the effort you have put into aptly, and I'd like to provide some honest feedback on how to improve it
In order for it to provide less confused users, I do think the output of commands like "aptly publish list" should provide a lot better information about what the various bits are
Instead of : "debian/trusty (origin: repo.varnish-software.com) [all, amd64, i386, source] publishes {non-free: [trusty-non-free_2018-04-03T11:55:38]: Snapshot from local repo [trusty-non-free]}"
It could be something like: "prefix: debian distro: trusty (origin: repo.varnish-software.com) components: [all, amd64, i386, source] publishes {repo: non-free: [snapshot: ...
or even better, not in a long line, but on multiple lines
because as a newb to aptly, wrapping your head around what the various parts of the commands are supposed to be is very non-intuitive
and it's not very well documented either, which wouldn't be so bad if the CLI gave more info
Andrey Smirnov
@smira

@denisbr

If I want to remove packageX-3.0.0.deb from a published repository, what are the steps required to do so?

you would need to drop package from whatever is being published (snapshot/repo), if that's it snapshot you need to modify snapshot source and create new snapshot, after that depending on snapshot/repo you can do aptly publish switch or aptly publish update

@denisbr PRs are really welcome on that, probably better if that is optional (like -v flag)
Denis Brækhus
@denisbr
thanks
@smira yeah, an optional verbose output would be nice
I'll have a look and see if my skills are up to it
Jason "Manbeard" Al-Mansor
@jalmansor
i have a question. i’ve been working on setting up aptly with multi-component publishing to create distro/env repos (trusty-test, trusty-stage, etc…) and publish those to s3. i’ve got this working great publishing to different prefixes, but i’m curious if it’s possible to use the distro as the distro/env switch instead of a prefix and publish everything to the same endpoint/prefix?
Augusto Campos
@augcampos
Hi there from Portugal, Is there a Admin tool for Aptly?
Andrey Smirnov
@smira
@augcampos hi Augusto, there's a list of tools here: https://www.aptly.info/doc/integrations/
Jason "Manbeard" Al-Mansor
@jalmansor
@smira does my question make any sense? i realize it might not have been terribly clear.
Andrey Smirnov
@smira
@jalmansor sorry missed your question