Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Test] Symfony framework dagger module#59240

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dragoonis wants to merge4 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromdragoonis:7.3
Open
Changes from1 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
PrevPrevious commit
[Test] Symfony framework dagger module - adding integration tests code
  • Loading branch information
@dragoonis
dragoonis committedDec 21, 2024
commitceff6021f4d8b2d4fbb20c730de3748271342fc9
43 changes: 32 additions & 11 deletions.dagger/src/Symfony.php
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -106,17 +106,19 @@ public function integrationTests(
return dag()->container()
->from('php:8.4-alpine')
// ->withExec($this->cmd('apk add --update inetutils-telnet'))
->withServiceBinding('redis', $this->redis())
->withServiceBinding('postgres', $this->postgres())
->withServiceBinding('redis-authenticated', $this->redisAuthenticated())
->withServiceBinding('redis-cluster', $this->redisCluster())
->withServiceBinding('redis-sentinel', $this->redisSentinel())
->withServiceBinding('memcached', $this->memcached())
->withServiceBinding('rabbitmq', $this->rabbitmq())
->withServiceBinding('mongodb', $this->mongodb())
->withServiceBinding('sqs', $this->sqs())
->withServiceBinding('couchbase', $this->couchbase())
->withServiceBinding('zookeeper', $this->zookeeper())
// ->withServiceBinding('redis', $this->redis())
// ->withServiceBinding('postgres', $this->postgres())
// ->withServiceBinding('redis-authenticated', $this->redisAuthenticated())
// ->withServiceBinding('redis-cluster', $this->redisCluster())
// ->withServiceBinding('redis-sentinel', $this->redisSentinel())
// ->withServiceBinding('memcached', $this->memcached())
// ->withServiceBinding('rabbitmq', $this->rabbitmq())
// ->withServiceBinding('mongodb', $this->mongodb())
// ->withServiceBinding('sqs', $this->sqs())
// ->withServiceBinding('couchbase', $this->couchbase())
// ->withServiceBinding('zookeeper', $this->zookeeper())
->withServiceBinding('zookeeper', $this->ftp())
->withServiceBinding('zookeeper', $this->ldap())
->withExec(['php', '-v']);

}
Expand DownExpand Up@@ -241,14 +243,33 @@ private function ldap(): Service
{
return dag()->container()
->from("bitnami/openldap")

// root@3f87793d2fc8:/# netstat -tnlp
// Active Internet connections (only servers)
// Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
// tcp 0 0 0.0.0.0:1389 0.0.0.0:* LISTEN -
// tcp6 0 0 :::1389 :::* LISTEN -

// The Bitnami Docker OpenLDAP can be easily setup with the following environment variables: L
// DAP_PORT_NUMBER : The port OpenLDAP is listening for requests. Priviledged port is supported (e.g. 389 ).
// Default: 1389 (non privileged port).

->withExposedPort(3389)
->withEnvVariable('LDAP_ADMIN_USERNAME', 'admin')
->withEnvVariable('LDAP_ADMIN_PASSWORD', 'symfony')
->withEnvVariable('LDAP_ROOT', 'dc=symfony,dc=com')
->withEnvVariable('LDAP_PORT_NUMBER', '3389')
->withEnvVariable('LDAP_USERS', 'a')
->withEnvVariable('LDAP_PASSWORDS', 'a')
->asService(useEntrypoint: true);
}

private function ftp(): Service
{
return dag()->container()
->from("onekilo79/ftpd_test")
->withExposedPort(21)
// @todo - what ports actually get used? do we need these?
->withExposedPort(30000)
->withExposedPort(30001)
->withExposedPort(30002)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp