mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-01-22 07:03:21 +01:00
Implemented pdsadmin
This commit is contained in:
parent
df5b63fbc5
commit
3e4da43627
@ -36,4 +36,5 @@ curl -X POST https://your-pds-domain/xrpc/com.atproto.server.createAccount \
|
|||||||
- https://github.com/bluesky-social/pds
|
- https://github.com/bluesky-social/pds
|
||||||
- https://chatgpt.com/c/678a2eb6-145c-800f-bf51-ff706981a928
|
- https://chatgpt.com/c/678a2eb6-145c-800f-bf51-ff706981a928
|
||||||
- https://www.youtube.com/watch?v=7_AG50u7D6c
|
- https://www.youtube.com/watch?v=7_AG50u7D6c
|
||||||
- https://github.com/bluesky-social/pds/issues/52
|
- https://github.com/bluesky-social/pds/issues/52
|
||||||
|
- https://github.com/lhaig/pdsadmin
|
@ -12,14 +12,41 @@
|
|||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
vars:
|
vars:
|
||||||
domain: "{{ domain_web }}"
|
domain: "{{ domain_web }}"
|
||||||
http_port: "{{ http_port_web }}"
|
http_port: "{{ http_port_web }}"
|
||||||
|
|
||||||
|
# The following lines should be removed when the following issue is closed:
|
||||||
|
# https://github.com/bluesky-social/pds/issues/52
|
||||||
|
|
||||||
|
- name: Download pdsadmin tarball
|
||||||
|
get_url:
|
||||||
|
url: "https://github.com/lhaig/pdsadmin/releases/download/v1.0.0-dev/pdsadmin_Linux_x86_64.tar.gz"
|
||||||
|
dest: "{{pdsadmin_temporary_tar_path}}"
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Create {{pdsadmin_folder_path}}
|
||||||
|
file:
|
||||||
|
path: "{{pdsadmin_folder_path}}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Extract pdsadmin tarball
|
||||||
|
unarchive:
|
||||||
|
src: "{{pdsadmin_temporary_tar_path}}"
|
||||||
|
dest: "{{pdsadmin_folder_path}}"
|
||||||
|
remote_src: yes
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Ensure pdsadmin is executable
|
||||||
|
file:
|
||||||
|
path: "{{pdsadmin_file_path}}"
|
||||||
|
mode: '0755'
|
||||||
|
state: file
|
||||||
|
|
||||||
- name: clone social app repository
|
- name: clone social app repository
|
||||||
git:
|
git:
|
||||||
repo: "https://github.com/bluesky-social/social-app.git"
|
repo: "https://github.com/bluesky-social/social-app.git"
|
||||||
dest: "{{social_app_path}}"
|
dest: "{{social_app_path}}"
|
||||||
version: "main" # Optional: spezifischer Branch oder Tag
|
version: "main"
|
||||||
update: yes # Aktualisiert das Repo, falls es schon existiert
|
|
||||||
notify: docker compose project build and setup
|
notify: docker compose project build and setup
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
pds:
|
pds:
|
||||||
image: ghcr.io/bluesky-social/pds:0.4
|
image: ghcr.io/bluesky-social/pds:latest
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
- pds_data:/pds
|
- pds_data:/pds
|
||||||
|
- {{pdsadmin_file_path}}:/usr/local/bin/pdsadmin:ro
|
||||||
environment:
|
environment:
|
||||||
# Geben Sie hier Ihre Domain und Konfigurationsdetails an
|
# Geben Sie hier Ihre Domain und Konfigurationsdetails an
|
||||||
PDS_HOSTNAME: "{{domain_api}}"
|
PDS_HOSTNAME: "{{domain_api}}"
|
||||||
@ -41,7 +42,8 @@ services:
|
|||||||
command: ["bskyweb","serve"]
|
command: ["bskyweb","serve"]
|
||||||
build:
|
build:
|
||||||
context: "{{ social_app_path }}"
|
context: "{{ social_app_path }}"
|
||||||
dockerfile: Dockerfile # Standard-Dockerfile im Repository
|
dockerfile: Dockerfile
|
||||||
|
# It doesn't compile yet with this parameters. @todo Fix it
|
||||||
args:
|
args:
|
||||||
REACT_APP_PDS_URL: "http://{{domain_api}}" # URL des PDS
|
REACT_APP_PDS_URL: "http://{{domain_api}}" # URL des PDS
|
||||||
REACT_APP_API_URL: "http://{{domain_api}}" # API-URL des PDS
|
REACT_APP_API_URL: "http://{{domain_api}}" # API-URL des PDS
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
docker_compose_project_name: "bluesky"
|
docker_compose_project_name: "bluesky"
|
||||||
social_app_path: "{{ docker_compose_instance_directory }}/social-app"
|
social_app_path: "{{ docker_compose_instance_directory }}/social-app"
|
||||||
|
|
||||||
|
# This should be removed when the following issue is closed:
|
||||||
|
# https://github.com/bluesky-social/pds/issues/52
|
||||||
|
pdsadmin_folder_path: "{{ docker_compose_instance_directory }}/pdsadmin"
|
||||||
|
pdsadmin_file_path: "{{pdsadmin_folder_path}}/pdsadmin"
|
||||||
|
pdsadmin_temporary_tar_path: "/tmp/pdsadmin.tar.gz"
|
Loading…
x
Reference in New Issue
Block a user