Skip to content

Commit

Permalink
Fix & cleanup scripts (#6777)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmeister committed Apr 24, 2024
1 parent 33575b5 commit feb2aa2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-integration.yml
Expand Up @@ -12,12 +12,6 @@ jobs:
with:
submodules: recursive

- name: Build local openslides tool
working-directory: "./openslides-manage-service"
run: |
go build ./cmd/openslides
cp openslides ../dev/localprod/.
- name: Use example data instead of initial data
working-directory: "./openslides-backend/global/data/"
run: cp example-data.json initial-data.json
Expand Down
3 changes: 1 addition & 2 deletions dev/scripts/export-ds.sh
Expand Up @@ -4,5 +4,4 @@ set -e
cd "$(dirname $0)"

TARGET=${1:-export.json}
URL="http://localhost:9010/internal/datastore/reader/get_everything"
curl --header "Content-Type: application/json" -d '{}' $URL 2> /dev/null | python3 strip-meta-fields.py > $TARGET
docker compose -f ../docker/docker-compose.dev.yml exec -T datastore-writer python cli/export_data_only.py > "$TARGET"
6 changes: 1 addition & 5 deletions dev/scripts/set-ds.sh
Expand Up @@ -3,9 +3,5 @@
set -e
cd "$(dirname $0)"

# first argument is the example data
DATA=${1:-../../openslides-backend/global/data/example-data.json}
./clear-ds.sh
docker compose -f ../docker/docker-compose.dev.yml cp $DATA datastore-writer:/data.json
docker compose -f ../docker/docker-compose.dev.yml exec datastore-writer \
bash -c "source export-database-variables.sh; export DATASTORE_INITIAL_DATA_FILE=/data.json; python cli/create_initial_data.py"
docker compose -f ../docker/docker-compose.dev.yml exec -T datastore-writer python cli/import_data_only.py < "$DATA"

0 comments on commit feb2aa2

Please sign in to comment.