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

Device is not a TTY error #935

Open
DonRichards opened this issue Sep 29, 2022 · 2 comments
Open

Device is not a TTY error #935

DonRichards opened this issue Sep 29, 2022 · 2 comments

Comments

@DonRichards
Copy link

DonRichards commented Sep 29, 2022

Error message during build "the input device is not a TTY"

I can build locally without any issues but the build fails when running a makefile that fires a docker-compose command (I think).

The step where the error pops up is at the "Build Static" step.

CI.yml

name: CI
on:
  push:
    branches:
      - main
      - development
    tags:
      - v*
  pull_request:
    branches:
      - main
      - development
jobs:
    build:
        name: build
        runs-on: ubuntu-latest
        outputs:
          matrix: ${{ steps.excludes-matrix.outputs.matrix }}
        steps:
            # Check out current commit
            - name: Checkout
              uses: actions/checkout@v3

            # Make sure buildkit is enabled
            - name: Enable buildkit
              shell: bash
              run: |
                  echo '{"experimental": "enabled"}' > ~/.docker/config.json

            # Build and run the static environment
            - name: Build Static
              run: make static-docker-compose.yml up

            # Run the updatedb command.
            - name: Run Update Hooks
            ...

MAKEFILE

# Creates solr-cores according to the environment variables.
.PHONY: solr-cores
.SILENT: solr-cores
solr-cores:
	@echo ""
	@echo "Creating solr-cores for $(COMPOSE_PROJECT_NAME)"
	if [ ! "$(shell docker ps -a --format \"{{.Names}}\" --filter 'status=running' | grep solr)" ]; then \
		echo "  └─ Solr is not running. Attempting to restart it now." ; \
		docker-compose restart solr ; \
	fi
	@echo "  └─ Checking for Drupal"
	if [ ! "$(shell docker ps -a --format \"{{.Names}}\" --filter 'status=running' | grep drupal)" ]; then \
		echo "    └─ Drupal is not running. Attempting to restart it now."; \
		docker-compose restart drupal ; \
		${MAKE} _docker-up-and-wait ; \
	fi
	docker-compose exec -T drupal with-contenv bash -lc "for_all_sites create_solr_core_with_default_config"
	@echo "  └─ Done"

Console output

Screenshot-46

I noticed there is a possibly related topic of discussion here (Github Community Discussion)
And Docker compose has some old info on previous releases with this error.

Not sure how related they might be but I thought it might give some more context to this.

@MarinaM79
Copy link

Tu peux m'aider ?

@MarinaM79
Copy link

A le faire directement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants